I need to run cron twice hourly (large amount of aggregated content). This becomes problematic with a one hour cache lifetime. If an expired cache clear was integrated into drush, this would facilitate a periodic cron job to clear the stale files. I wasn't sure to file this under code or UI. My apologies if I made the wrong choice.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Is the problem that you only want cron to flush expired content? Current solution is to run a modified cron
http://drupal.org/node/331537
Related: http://drupal.org/node/19173

Is this what you where looking for?

mikeytown2’s picture

mikeytown2’s picture

Status: Postponed (maintainer needs more info) » Fixed
dbeall’s picture

added to handbook, Tips and Tricks page

Status: Fixed » Closed (fixed)

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

sillygwailo’s picture

Status: Closed (fixed) » Active

I'm not convinced that the Provision Boost Support module currently provides the functionality asked for here. It "only" provides verify for the Aegir system. I think what eyecon wants (correct me if I'm wrong) is integration that would provide a cache-clear command specific to Boost for Drush. Something along the lines of:

drush -l http://example.com/ boost-cache-clear-all

OR

drush -l http://example.com/ boost-cache-clear-expired

If it's using one of the solutions to run a stripped-down cron, then we'd need specific documentation to that effect. So I think that in the handbook, as written, the proposed solution doesn't solve the problem.

sillygwailo’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
noslokire’s picture

+1

sillygwailo’s picture

Status: Active » Needs review
FileSize
2.29 KB

Attached is a boost.drush.inc file (remove the .txt extension and the underscore) to drop in with the module package. It adds the following Drush commands:

boost-cache-clear-all
Clears all Boost cached data.
boost-cache-clear-expired
Clears Boost expired data.
boost-reset
Clears Boost's database and file cache.

Tested against 6.x-1.8 and 6.x-dev (as of yesterday) and Drush 3.3. Development sponsored by OpenRoad Communications.

mikeytown2’s picture

FileSize
3.13 KB

modified the drush commands so they should almost always work (just as if you did the commands from the admin section of the module page).

mikeytown2’s picture

Status: Needs review » Fixed

committed. Thanks for the patch!

Status: Fixed » Closed (fixed)

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

geerlingguy’s picture

Title: DRUSH Integration » Drush Integration for Boost module
Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Needs work

Is there any way this functionality could be added back in for the D7 version?

Anonymous’s picture

I'll have a look, it make a nice change to work on something a little different within drupal.

SocialNicheGuru’s picture

Issue summary: View changes

Reviving this after two years.
This would make a nice addition to drush.

  • bgm committed 49e60ef on 7.x-1.x
    Issue #517962: Drush integration.
    
bgm’s picture

Status: Needs work » Needs review

I committed a basic implementation in 7.x-1.x. Please review/test/improve.

yannisc’s picture

nice! thank you!

When will there be a new release that will have this in?

grn’s picture

This is not in the latest dev, right?