Posted by Vacilando on November 5, 2009 at 12:22pm
Jump to:
| Project: | Memcache API and Integration |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I've set up a memcache server with 160 MB of cache available. It's been working rather nicely, and after a week there's over 80 MB of cache occupied.
My question is, what happens when my cache reaches the limit of 160 MB, when it gets full. I haven't seen the cache decreasing at cron runs or at clearing all caches with Devel, etc. It always increases.
Does it mean old entries are accumulating and cache clearing does not work? I'll appreciate somebody explaining how it works. Thanks.
Comments
#1
If cache is not cleared, Memcache will store it while it has free memory. When it reaches memory limit it starts to remove unused entries to free memory. This is called LRU (Least Recently Used) algo. You can find more info using Google.
#2
Ah, I see. So memcache does the clearing and there's no need for Drupal to worry about it. Great; thanks.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.