Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Request #11225 Garbage collection Container_file improvement
Submitted: 2007-06-05 07:31 UTC
From: didi0dmc Assigned:
Status: Open Package: Cache (version 1.5.5RC4)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 32 + 29 = ?

 
 [2007-06-05 07:31 UTC] didi0dmc (Dieter Rothacker)
Description: ------------ To improve the expensive Garbage Collection procedure of Container_file (opening each cache file and reading the expiry date from the file content), there are two possibilities: 1. put the expiry date into the filename and do only directory reads for GC 2. calculate the expiry date from the ctime of each file. This also needs no opening of the cache files Method 2 is probably "nicer", since it does not change the naming convention of cache files.

Comments