php – 使用Zend Opcache列出目录

我如何告诉Zend Opcache不缓存特定目录中的任何文件.
例如/ 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.

例如,创建一个文件

/etc/PHP5/opcache-blacklist.txt

使用通配符设置保存:

/var/www/public_html/devzone/*

并将黑名单文件路径添加到您的PHP.ini中:

opcache.blacklist_filename=/etc/PHP5/opcache-blacklist.txt

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...