Posted by mikeytown2 on October 7, 2009 at 7:55pm
2 followers
| 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
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
#3
#4
committed
#5
Let the "Boost: Pages cache configuration" block take full advantage of this.
#6
Fixed an issue with multi sites & now the blocks use the code!
#7
committed
#8
Automatically closed -- issue fixed for 2 weeks with no activity.