PHP.nl

opcache_invalidate

opcache_invalidate

Invalidates a cached script

bool **opcache_invalidate** string $filename bool $force

This function invalidates a particular script from the opcode cache. If is unset or false, the script will only be invalidated if the modification time of the script is newer than the cached opcodes. This function only invalidates in-memory cache and not file cache. force

filenameThe path to the script being invalidated.

forceIf set to true, the script will be invalidated regardless of whether invalidation is necessary.

Returns true if the opcode cache for was invalidated or if there was nothing to invalidate, or false if the opcode cache is disabled. filename

opcache_compile_file``opcache_reset