Mantis - Quercus
Viewing Issue Advanced Details
3795 minor always 12-01-09 17:48 01-13-10 16:19
nam  
 
normal  
new 4.0.2  
open  
none    
none  
0003795: APC cache should not be an LRU cache
(rep by QuiddleDeeDoodler)

I am using Quercus with compile set to true.

I would like to store multiple site-particular variables in APC. This works fine, for a while. But after an indeterminable period the variables are lost.

I've have the following settings in the web.xml ...


<!-- QUERCUS -->
<servlet-mapping url-pattern="*.php" servlet-name="resin-php">
<init>
<compile>true</compile>
<script-encoding>UTF-8</script-encoding>
<php-ini>

<apc.enabled>1</apc.enabled>
<apc.shm_segments>400</apc.shm_segments>
<apc.shm_size>30</apc.shm_size>
<apc.write_lock>1</apc.write_lock>
<apc.num_files_hint>1000</apc.num_files_hint> <apc.user_entries_hint>1000</apc.user_entries_hint>

</php-ini>
</init>
</servlet-mapping>


Any suggestions welcomed.

Notes
(0004366)
davidstrauss   
12-30-09 21:31   
"But after an indeterminable period the variables are lost."

PECL APC does not guarantee persistence, either. Even if you set a TTL of zero, you could end up with the entire user cache flushed if space runs out.
(0004382)
ferg   
01-13-10 16:19   
Hmmm. The interesting bit is that we can provide either functionality LRU (cache) or full store capability, depending on what's actually needed. We'd actually like to provide more capabilities than the APC API makes accessible.