OPCACHE_INVALIDATE(3) 1 OPCACHE_INVALIDATE(3)
opcache_invalidate - Invalidates a cached script
SYNOPSIS
boolean opcache_invalidate FALSE (string $script, [boolean $force])
DESCRIPTION
This function invalidates a particular script from the opcode cache. If $force is unset or FALSE, the script will only be invalidated if
the modification time of the script is newer than the cached opcodes.
PARAMETERS
o $script
- The path to the script being invalidated.
o $force
- If set to TRUE, the script will be invalidated regardless of whether invalidation is necessary.
RETURN VALUES
Returns TRUE if the opcode cache for $script was invalidated or if there was nothing to invalidate, or FALSE if the opcode cache is dis-
abled.
SEE ALSO
opcache_compile_file(3), opcache_reset(3).
PHP Documentation Group OPCACHE_INVALIDATE(3)