'Twas brillig, and Vincio at 04/03/11 16:09 did gyre and gimble: > Thank you for the answer. > > How can I clean cache?
You have to use a backend that support tags if you want to clean based on tags. Using the file backend is *horrible* when doing any kind of sizable caching (it takes a very long time to run as it has to open every single cache file's metadata to check for the tags). In my setup, I use Memcache (which also does not support tags) but built a database backed system to track the tags used for a given id. I can then clean my tags based on that additional metadata. It's not idea, but as the cleaning process is not automated (it's trigged when things change - not very often) and as the ultimate goal is to have everything loaded from cache, these additional metadata tables in the db don't get a massive amount of hits on them for general usage - which was my goal. If this is something that is of interest generally, I can clean up my code and submit them upstream (but as most of my patches go unloved on the issue tracker, one is three years old now!) I'm not sure if it's really worth the effort :s Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mageia Contributor [http://www.mageia.org/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]
