Closed
Description
In the performance article, the section about byte code caches mentions the problem with clearing the APC/OpCache from the CLI.
The article mentions a working, but rather impractical way:
You either need to restart the web server or call the apc_clear_cache() or opcache_reset() functions via the web server (i.e. by having these in a script that you execute over the web).
If you are running PHP via FCGI (like FPM) you can use the cachetool to send the cache clear command directly via the FCGI protocol. That prevents exposing a publicly callable cache-clear script (which might be a DDoS attack vector).
So my question: would be beneficial to mention this tool here as a better solution to this problem?