Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Break this code out into its own function
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
Comment | File | Size | Author |
---|---|---|---|
#6 | boost-598490.2.patch | 6.57 KB | mikeytown2 |
#3 | boost-598490.1.patch | 2.1 KB | mikeytown2 |
#2 | boost-598490.patch | 2.08 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedThis 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.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedComment #4
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedLet the "Boost: Pages cache configuration" block take full advantage of this.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedFixed an issue with multi sites & now the blocks use the code!
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted