Reputation: 1
I'm used Yii2 Advance to develop system via remote server. When I save file editor will upload it to server automatic. After save I refresh browser. It's still show old data not update from new file. And about 1 min it will up to date.
I test the different folder on server It's work find, Update when save file.
Please help me.
Thanks and best regards,
Woody
Upvotes: 0
Views: 214
Reputation: 1
Well, Now I can solve this problem by myself. This effect is PHP function "OPCache" it come with PHP 5.5 or higher.
We can disable OPCache by many way but I used this solution.
Open autoload.php from /yii2project/vender/autoload.php and add this code.
opcache_reset();
I don't know what the best way in Yii2 for reset opcache like this. If it has please reply this post.
Thank you everyone and to think this topic will help you.
Upvotes: 0