The following thinkphp framework tutorial column will introduce to you the method to solve the problem of "tp5.1 modified the code and it will take 60 seconds to refresh". I hope it will help you if you need Friends help!
Problem point: You need to wait 30 seconds or some time to modify the PHP code Only after refreshing in the browser
I always thought it was a caching problem of the framework. After searching for a long time, I found that php has enabled opcache cache. For php5. version, you need to manually enable it yourself. For php7. In order to improve the performance of php, there are some possibilities. It is turned on directly by default
The above is the detailed content of Solve the problem of 'tp5.1 modified the code and it will take 60 seconds to refresh'. For more information, please follow other related articles on the PHP Chinese website!