我如何告诉Zend Opcache不缓存特定目录中的任何文件.
例如/ var / www / public_html / devzone / *
例如/ var / www / public_html / devzone / *
我使用PHP 5.5.13与Zend OPcache v7.0.4-dev
您应该将
opcache.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.
例如,创建一个新文件:
@H_301_14@/etc/PHP5/opcache-blacklist.txt使用通配符设置保存:
@H_301_14@/var/www/public_html/devzone/* @H_301_14@opcache.blacklist_filename=/etc/PHP5/opcache-blacklist.txt