opcache_reset

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache >= 7.0.0)

opcache_reset重置字节码缓存的内容

说明

opcache_reset(): bool

该函数将重置整个字节码缓存。在调用 opcache_reset() 之后,所有的脚本将会重新载入并且在下次命中的时候重新解析。此函数仅重置内存中的缓存,不会重置文件缓存。

参数

此函数没有参数。

返回值

如果字节码缓存被重置成功,则返回 true;如果字节码缓存被禁用,则返回 false

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top