Download & Extend

Be able to expire all views, but not all nodes; ect...

Project:Boost
Version:6.x-1.x-dev
Component:Expiration logic
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Break this code out into its own function

<?php
function boost_cache_expire($paths) {
...
 
// Get filenames & hash from db
 
foreach ($data as $dblookup) {
   
$result = db_query("SELECT filename, hash FROM {boost_cache} WHERE page_callback = '%s' AND page_arguments = '%s' AND page_id = '%s'", $dblookup['page_callback'], $dblookup['page_arguments'], $dblookup['page_id']);
    while (
$info = db_fetch_array($result)) {
     
// Flush expired files
     
boost_cache_kill($info['filename'], $info['hash']);
    }
  }
}
?>

This will rock your socks off

Comments

#1

Status:active» needs review

This with the rules module will allow you to do this with views, if you know which views contain the node #453908: Hook for panel node types - expiration of static cache; panel containing multiple nodes. It's not automatic like the patch will be, but at least now it can be done.

#2

AttachmentSize
boost-598490.patch 2.08 KB

#3

AttachmentSize
boost-598490.1.patch 2.1 KB

#4

Status:needs review» fixed

committed

#5

Status:fixed» active

Let the "Boost: Pages cache configuration" block take full advantage of this.

#6

Status:active» needs review

Fixed an issue with multi sites & now the blocks use the code!

AttachmentSize
boost-598490.2.patch 6.57 KB

#7

Status:needs review» fixed

committed

#8

Status:fixed» closed (fixed)

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

nobody click here