Closed (fixed)
Project:
Boost
Version:
6.x-1.x-dev
Component:
Expiration logic
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2008 at 15:33 UTC
Updated:
16 Jun 2009 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
Arto commentedHi Giorgio,
You can either hack the code (it's in
boost.admin.inc), or you can execute the following command against your database:The above sets the cache lifetime to a week (7 * 24 * 60 * 60 seconds). Of course, since it's beyond the range of the preset options on the settings screen, the next time you save the performance settings you might have to manually execute this again to correct the lifetime.
I'll see about including longer cache lifetimes to the 6.x branch that is currently under active development.
Comment #2
giorgio79 commentedThanks Arto. I tried it, but it seems increasing it beyond 1 day does not work.
After trying your suggestion the expiry date always equaled the cache date at the bottom of the html.
Comment #3
giorgio79 commentedI was just checking the boost.admin.inc, and I believe this is the relevant code but I have not found where the form is pulling the available values...
Comment #4
mo6subscribe
Comment #5
mo6You can't see the form presets because they are defined in modules/system/system.module.
I've created a small patch to boost.admin.inc:
This adds "2 days, 3 days and 1 week" to the caching lifetime options.
Comment #6
Terko commentedHello!
How I can increase the cache lifetime from 24 hours to for example 30 hours? I am using the 6.x dev version. I will be very happy if you help me, because 24 hours is not enough for my web site and the load is heavy for my hosting. Thanks!
Comment #7
mikeytown2 commentedLooking into doing this, which would be compatible/future proof with #204174: Work with page cache, not instead of it
http://api.drupal.org/api/function/drupal_map_assoc/
http://api.drupal.org/api/function/format_interval/
Comment #8
mikeytown2 commentedComment #9
giorgio79 commentedComment #10
mikeytown2 commentedcommitted