opcache_is_script_cached Tells whether a script is cached in OPCache

发表日期:2021-07-01 08:55:00 | 来源: | | 浏览(515) 分类:OPcache 函数

opcache_is_script_cached

(PHP 5 >= 5.5.11, PHP 7, PHP 8, PECL ZendOpcache >= 7.0.4)

opcache_is_script_cachedTells whether a script is cached in OPCache

说明

opcache_is_script_cached(string $filename): bool

This function checks if a PHP script has been cached in OPCache. This can be used to more easily detect the "warming" of the cache for a particular script.

参数

filename

The path to the PHP script to be checked.

返回值

Returns true if filename is cached in OPCache, false otherwise.

参见

集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。