|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-05-17 18:01 UTC] alain dot russell at blackpepper dot co dot nz
Description:
------------
setting apc.slam_defence=Off is ignored and errors are still
logged as [apc-warning] Potential cache slam averted for key
'foo' in xx.php on line 7.
Current settings are:
extension="apc.so"
apc.enable_cli=0
apc.enabled=1
apc.file_update_protection=5
apc.gc_ttl=3600
apc.max_file_size=2M
apc.num_files_hint=6000
apc.shm_segments=1
apc.shm_size=256
apc.user_ttl=3600
apc.slam_defense=0
apc.write_lock=1
var_dump('slam_defense: ', ini_get('apc.slam_defense'));
string(14) "slam_defense: "
string(0) ""
var_dump('write_lock: ', ini_get('apc.write_lock'));
string(12) "write_lock: "
string(1) "1"
Rolling back to 3.1.2 for now resolved cache slam issue.
Reproduce code:
---------------
apc_store('foo', 1);
echo apc_fetch('foo') . '<br>';
apc_store('foo', 2);
echo apc_fetch('foo') . '<br>';
Expected result:
----------------
1
2
Actual result:
--------------
1
1
Warning Logged: [apc-warning] Potential cache slam averted for
key 'foo' in xx.php on line x.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
SAME Problem: php 5.3.3 apc 3.1.3p1 >>> apc_store("x",1) true >>> apc_store("x",1) [Wed Jun 16 11:06:52 2010] [apc-warning] Potential cache slam averted for key 'x' in /hb/bin/phpa(192) : eval()'d code on line 1. false apc.slam_defense=0 apc.write_lock=0 does not help please help