GoLang opcache_invalidate

request it (287)
GoLang replacement for PHP's opcache_invalidate [edit | history]

Do you know a GoLang replacement for PHP's opcache_invalidate? Write it!

PHP opcache_invalidate

PHP original manual for opcache_invalidate [ show | php.net ]


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

opcache_invalidateInvalidates a cached script


bool opcache_invalidate ( string $script [, bool $force = FALSE ] )

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.



The path to the script being invalidated.


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 disabled.

See Also