Php code cache problems

Source: Internet
Author: User
: This article mainly introduces php code caching. if you are interested in the PHP Tutorial, refer to it. The project runs in a php + nginx environment. it takes a while to change the code to take effect.

Today, we are free to solve the problem. The main reason is that php caches opcode by default.

View the display result of phpinfo () and find that there is an expiration time configuration in ZendOpcache-opcache. revalidate_freq. the default value is 60.

I open php. ini, find opcache. revalidate_freq: change the value to 1 (the reason why it is not changed to 0 is to prevent re-generation of opcode for each run, resulting in a decrease in the efficiency of intensive computation in php, change to 1 to meet my development needs)

Respect for originality, with links: http://www.oschina.net/question/123129_221115

The above introduces the php code cache problem, including some content, and hopes to help friends who are interested in the PHP Tutorial.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.