Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003795 [Quercus] minor always 12-01-09 17:48 12-09-20 04:30
Reporter nam View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.2
  Product Build
Summary 0003795: APC cache should not be an LRU cache
Description (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.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- 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.
 
(0006952)
alexwriter
12-09-20 04:30
edited on: 12-09-20 04:30

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

<apc.enabled>1</apc.enabled>
<apc.shm_segments>400</apc.shm_segments>
<apc.shm_size>30</apc.shm_size> https://goo.gl/2DqXGj [^]
<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>

Fixed??

 

- Issue History
Date Modified Username Field Change
12-01-09 17:48 nam New Issue
12-30-09 21:31 davidstrauss Note Added: 0004366
01-03-10 06:55 davidstrauss Issue Monitored: davidstrauss
01-13-10 16:19 ferg Note Added: 0004382
12-09-20 04:30 alexwriter Note Added: 0006952
12-09-20 04:30 alexwriter Note Edited: 0006952


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
37 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker