Closed ocean90 closed 7 years ago
Or perhaps wp opcache invalidate <script path> [--force]
so people don't think wp opcache clear --force
makes any difference to wp opcache clear
?
That's fine too, I used clear
since that's what we currently have. We could also ignore the force
part and set it to true
by default.
OPcache has also
opcache_invalidate()
to invalidate a cached script. Is this something the plugin should support?The command could look like
$ wp opcache clear <script path> [--force]
.http://php.net/manual/en/function.opcache-invalidate.php