Opcache
Learn how OPcache can speed up web page loading by storing precompiled script bytecode, but be aware it might delay seeing changes during development. Discover how to temporarily disable it in your .htaccess file.
OPcache is a type of caching system that saves precompiled script bytecode in a server's memory called a cache, so each time a user visits a web page, it loads faster. This type of caching can cause frustration when altering or developing web pages as you may have to wait until the cache performs a refresh to see the changes you just made. Add the following to the top of your .htaccess file to temporarily disable OPcache caching:
php_flag opcache.enable Off
These articles are created by the engineers at EssingtonITS as part of our day-to-day work supporting real-world systems, projects, and deployments. From Linux administration and networking to Moodle, Docker, automation, and infrastructure management, our goal is to share useful knowledge that helps others solve problems faster and work more efficiently.
person people found this useful.