Reply to thread

Opcode memory cache is not shared by different SAPIs (like CLI, CGI, FPM, LSAPI, etc.) so there simply isn't a direct way to invalidate opcache from CLI.


Depending on the setup / environment there might not even be a process running the "web" SAPI on the same machine/ container running CLI.


One approach (that should work in many cases, but not necessarily every case) could be to use the XenForo API, eg. send an API request to the webserver from CLI.


Back
Top Bottom