opcache_reset

Resets the contents of the opcode cache

Description

bool opcache_reset()

This function resets the entire opcode cache. After calling opcache_reset, all scripts will be reloaded and reparsed the next time they are hit. This function only resets in-memory cache, not the file cache.

Parameters

This function has no parameters.

Return Values

Returns true if the opcode cache was reset, or false if the opcode cache is disabled or the restart is pending or in progress (see opcache_get_status).

See Also

  • opcache_invalidate
  • opcache_get_status