Home > PHP Framework > ThinkPHP > 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'

藏色散人
Release: 2020-11-25 14:53:42
forward
2753 people have browsed it

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 'tp5.1 modified the code and it will take 60 seconds to refresh'

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template