A helper module for the Boost module. :o)

Boosthelper crawls the URL of a newly created/edited node immediately, instead of waiting for the next cron run. Also immediately recrawls the front page if Boost set to "Clear the front page cache when promoted". Also clears all (public only) organic groups cached pages that the node appears in and immediately recrawls them.

Works with or without Pathauto.
Respects node access permissions. (e.g. Private og posts will not be cached.)

Successfully tested on stand-alone Drupal 6.19 and 6.20 installations with Boost 6.x-1.18 and Boost 6.x-1.x-dev2011-Feb-25.

Also successfully tested on Aegir 1.0 rc7 managed Drupal 6.19 and 6.20 sites with boost 6.x-1.x-dev2011-Apr-12 and provision_boost 6.x-0.5.

I was going to just submit this as a patch for the Boost module, but for new nodes on sites that use Pathauto, the drupal_http_request needs to occur in a hook_nodeapi that happens after Pathauto has already created the new URL alias. Since the Boost module has a system table weight of -90, and Pathauto has a weight of 1, Boosthelper must exist as a separate module so it can have a system table weight greater than that of Pathauto.

Project page: http://drupal.org/sandbox/ronaldmulero/1125196

Comments

sreynen’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hi ronaldmulero,

Have you considered adding it to the Boost project as an included submodule? That makes sense why it needs to be a separate module, but it's common enough for one project to contain multiple modules. This seems useful enough to include in the main project, where users can most easily find it. As the main Boost maintainer has already expressed support, I wouldn't expect it to be hard to get it added.

sreynen’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I'm closing this due to no response for months. Please re-open if this was a mistake.

ronaldmulero’s picture

Assigned: Unassigned » ronaldmulero
Status: Closed (won't fix) » Postponed (maintainer needs more info)

Hi sreynen.

Your suggestion makes sense. I'll give it a shot.

avpaderno’s picture

Assigned: ronaldmulero » Unassigned
avpaderno’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

There have not been replies in the past months.