Active
Project:
Boost
Version:
7.x-1.x-dev
Component:
Caching logic
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
26 Dec 2012 at 18:43 UTC
Updated:
29 Aug 2014 at 15:08 UTC
Jump to comment: Most recent
Is there an option in boost to set custom expiry times for specific paths or path patterns?
Comments
Comment #1
Anonymous (not verified) commentedNot in the 7 series, only setting for differing types of content is customisable.
Comment #2
zyxware commentedThanks @Philip_Clarke for the quick confirmation. Is this something boost module might have as a feature in the future? If not, I was thinking of writing a small addon utility module to work with boost.
Comment #3
Anonymous (not verified) commentedThere's no definitive road map, so feel free to. When your module works then it would be added to the "related modules" section by myself. Boost as one module, as I understand it (having come later to the project) was unwieldy and unmanageable so when converted was split into smaller sections where spreading it out helps in the community.
Comment #4
zyxware commentedI have created a module that allows users to set custom rules to change the cache lifetime of different pages cached by boost. The module is available at
http://drupal.org/project/boost_custom_expire_rules
Currently supported rules are
This would allow for older nodes to have an longer cache lifetime. For example setting a cache lifetime of 1 week for nodes older than 1 month and setting a cache lifetime of 1 hour for nodes fresher than 1 week.
Different content types can be configured to have different cache lifetimes. For example setting a cache lifetime of 1 week for page nodes and setting a cache lifetime of 1 hour for story nodes.
This would allow for faster changing URLs like the home page or taxonomy listing pages to have shorter cache lifetimes while slower changing URLs could continue to have longer cache lifetimes.
The rules are created using a simple API that developers can use to add additional rules.
Comment #5
bazzmann commentedHi Philip Clarke,
I can't find the option to set different expire setting per type of content... where am I missing the option?
Thanks in advance,
M.