I see 5 output every time I run this code:
<?php $v = 5; apc_store('vwxyz',$v,3); $before = apc_fetch('vwxyz'); sleep(5); $after = apc_fetch('vwxyz'); //should be false echo $before; echo "<br>"; echo $after; $later = apc_fetch('vwxyz'); //OK this should definitely be false echo "<br>"; echo $later;
Shouldn't I clear the cached entry from the cache and return false in apc_fetch ()? User_ttl is 2 for APC. I'm still trying to figure out what user_ttl does (the documentation is pretty cryptic).
source share