我如何告诉Zend Opcache不缓存特定目录中的任何文件.
例如/ var / www / public_html / devzone / *
例如/ var / www / public_html / devzone / *
我使用PHP 5.5.13与Zend OPcache v7.0.4-dev
您应该将
原文链接:https://www.f2er.com/php/131123.htmlopcache.blacklist_filename
配置值设置为黑名单的文件路径.
The location of the OPcache blacklist file. A blacklist file is a text file containing the names of files that should not be accelerated,one per line. Wildcards are allowed,and prefixes can also be provided. Lines starting with a semi-colon are ignored as comments.
例如,创建一个新文件:
/etc/PHP5/opcache-blacklist.txt
使用通配符设置保存:
/var/www/public_html/devzone/*
opcache.blacklist_filename=/etc/PHP5/opcache-blacklist.txt