apc_store isn't working between requests

前端 未结 3 1630
情书的邮戳
情书的邮戳 2021-01-05 09:19
$bar = \'BAR\';
apc_store(\'foo\', $bar);
var_dump(apc_fetch(\'foo\'));

Within one request this work.

Now If i try to do a var_dump(a

3条回答
  •  星月不相逢
    2021-01-05 09:43

    Probably you are running PHP over CGI (instead of FastCGI which you ought to use) - see my answer in another question why APC doesn't work if PHP is running over CGI.

提交回复
热议问题