Closed (fixed)
Project:
Boost
Version:
6.x-1.18
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2008 at 10:23 UTC
Updated:
7 Mar 2010 at 16:17 UTC
Hi,
I'd like boost to leave the cache files alone and simply overwrite them once they become expire. From the code I discovered that boost's cron hook purges all expired cache files from the cache directory. Would there be any negative effect on boost's static caching if its cron hook wasn't allowed to run (comment out boost_cron() in boost.module)? Other than cache files piling up overtime?
Thanks,
sn
Comments
Comment #1
deverman commentedI also have a problem with boost on my cron runs. We found that our cron was taking a long time to complete and so we changed core to record the start and end time between cron hook calls. We found that the longest time was with boost. It takes around 396581.86ms to recurse the whole directory to remove the expired files. I think we have a slow disk on our server plus a fairly large site with a lot of cached files. I guess boost should take a different approach for deleting expired files in that it should limit it self to how many files it checks per cron run instead of a full blown recursive traversal.
Comment #2
Arto commentedComment #3
alex s commentedProblem of dynamic cache expiration can be solved with apache's RewriteMap directive (need access to httpd.conf) and a few lines of php code. If you are intrested in, i can post detailed explanation.
Comment #4
deverman commentedYes, can you please post some sample code of how to make this happen my server disk is slow and feel that boost could be slowing the whole thing down on cron run.
Comment #5
alex s commenteddeverman, look at this:
http://drupal.org/node/331537
Comment #6
mikeytown2 commentedClosing all 5.x issues; will only reevaluate if someone steps up #454652: Looking for a co-maintainer - 5.x
Reason is 6.x has 10x as many users as 5.x; also last 5.x dev was over a year ago. The 5.x issue queue needs to go.
Comment #7
autyzm commentedCan we reopen this, please?
I'm using D6 and I'm noticing same problem.
http://forumautyzmu.pl <- site is pretty big, there is over 6000 pages to remove each cron run and it takes very long time (more than 30 minutes).
Comment #8
mikeytown2 commentedYou can configure boost to overwrite the pages; you have to use the crawler. 30 minutes to remove 6,000 files doesn't seem correct. I've seen it take around 40 minutes to remove over a million files.