加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 使用Zend Opcache列出目录

发布时间:2020-12-13 14:07:25 所属栏目:PHP教程 来源:网络整理
导读:我如何告诉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
我如何告诉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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读