Home  >  Article  >  PHP Framework  >  Solve the problem of "tp5.1 modified the code and it will take 60 seconds to refresh"

Solve the problem of "tp5.1 modified the code and it will take 60 seconds to refresh"

藏色散人
藏色散人forward
2020-11-25 14:53:422651browse

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!

Solve the problem of

About the caching problem of TP5.1 framework and php

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

Solve the problem of tp5.1 modified the code and it will take 60 seconds to refresh

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!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete