The D7 version of boost doesn't really have any expiration stuff in it. A simple module has been created http://drupal.org/project/boost_expire, but this destroys all the cache.

It would be nice if there was some integration with this module and boost so that when a node is saved, just that one node is removed from boost cache.

CommentFileSizeAuthor
#9 screen_1.png33.22 KBspleshka
#9 screen_2.png40.97 KBspleshka

Comments

GN’s picture

I think removing from boost cache just that one node should not be a big deal, but it's not a solution, because adding/changing one node may affect lots of other pages - e.g. if you post to the front page a news article with some tags, it affects the node page, the front page, taxonomy pages, all pages where the 'Recent news' block or taxonomy blocks are visible, and so on.

that0n3guy’s picture

Thats true, so clearing that one node and some user defined "hub" pages (frontpage, taxonomy pages,etc) might be a simple solution. I think that solution would probably cover 90% of sites. Think so?

GN’s picture

I think it may depend on the node. For example, if we edit the title of the 'What's this all about' node visible in the main menu block, it should most probably affect all pages of the site.

that0n3guy’s picture

You probably right. So maybe an api or rules module to allow developers to delete what they want depending on the site.

bgm’s picture

bgm’s picture

Status: Active » Needs review

See previous comment. I had forgotten to change the issue status.

spleshka’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

There are no needs in Boost expire module anymore. Check out 7.x-2.x of Cache expiration.

geerlingguy’s picture

Component: Code » Documentation
Status: Fixed » Needs work

@Spleshka - is there any documentation on how someone could use Cache expiration with Boost? Before I put any kind of deprecation notice on Boost Expire's project page, I'd like to have a simple guide so people aren't left in a lurch and have to figure out how to simply expire caches after nodes/comments are saved.

spleshka’s picture

StatusFileSize
new40.97 KB
new33.22 KB

Boost module has integration with Cache Expiration via hook_cache_expire(). It means that if user configures to expire pages after some actions, Boost will recieve urls of this pages and expires them itself (see boost_cache_expire()).

Some screenshots for you:

Module settings:
screen_1.png

Entity expiration configuration sample:
screen_2.png

geerlingguy’s picture

Sweet! When I get a few minutes, I'm going to make sure I have things in order for Boost Expire, then mark it as deprecated with the proper pointers for people ready to switch to Cache Expiration.

Thank you!

geerlingguy’s picture

Status: Needs work » Fixed

Okay, back to fixed; I've deprecated the Boost Expire module—see #2029269: Deprecate Boost Expire in favor of Cache Expiration.

spleshka’s picture

Great, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.