← All docs

opcache_reset()

Clears the whole opcode cache.

opcache_reset()

function opcache_reset(): bool

Clears the whole opcode cache.

Parameters: none.

Returns: bool

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): supported through native OPcache prelude declarations or dedicated interpreter handlers; see OPcache.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how opcache_reset is implemented in the compiler, see the internals page.