APC serving old code intermittently running with Lighttpd and PHP Fast CGI
- by APZ
I recently started facing this problem that APC shows old code when we upload a html template file to fix/ change something on our websites. We run APC with Stat=0 and want to keep it that way because we seldomly make changes to templates.
Every time we upload a template we make sure to flush APC cache and we execute this script(shown only some part of the script here) to clear the cache: apc_clear_cache(); apc_clear_cache('user'); apc_clear_cache('system'); apc_clear_cache(opcode);
We use lightpd and PHP Fast CGI and fast cgi has
"max-procs" = 2,
"PHP_FCGI_CHILDREN" = "5",
Even after flushing APC once upload is complete it serves the old template intermittently. Any help would be appreciated.