Is there an option in boost to set custom expiry times for specific paths or path patterns?

Comments

Anonymous’s picture

Not in the 7 series, only setting for differing types of content is customisable.

zyxware’s picture

Thanks @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.

Anonymous’s picture

There'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.

zyxware’s picture

Assigned: Unassigned » zyxware

I 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

  • Node age based cache expire rule
    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.
  • Node type based cache expire rule
    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.
  • Drupal path / URL based cache expire rule
    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.

bazzmann’s picture

Issue summary: View changes

Hi 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.