APC serving old code intermittently running with Lighttpd and PHP Fast CGI
Posted
by
APZ
on Server Fault
See other posts from Server Fault
or by APZ
Published on 2012-11-05T21:34:52Z
Indexed on
2012/11/05
23:04 UTC
Read the original article
Hit count: 240
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.
© Server Fault or respective owner