Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This is a tricky bug... will most likely require a database lookup of the url_alias & path_redirect tables. Then do a search and destroy for any matching cached files. This method will only work if Pathauto is configured to automatically generate path redirects via Path Redirect.
How to trigger this bug - Rename a node's path. Stale file still there, thus a good chance of it being served. It will be cleared on cron though so this isn't critical.
Comment | File | Size | Author |
---|---|---|---|
#6 | boost.module.patch | 4.5 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedAlternative solution to this problem is a db table, much like Cache Static.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedModified Version Of Path Redirect() -> path_redirect_load() #451790: API - Reverse Lookup. path_redirect_load()
Add this to a new function that sits in between the calls made to boost_cache_expire() and the actual boost_cache_expire().
While we are here, implementing wildcard support so files with url variables can be expired when the base file gets expired is a good idea.
http://www.php.net/fnmatch
http://www.php.net/glob
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedComment #4
Dracolyte CreditAttribution: Dracolyte commentedThanks for your reply to my other post. I made a quick change in the boost module nodeapi() function to use my user-friendly URLs the expired pages, like so:
This module is a lifesaver, BTW.
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedIt's now very important that the cache gets expired correctly, since the cache doesn't get cleared on every cron run with the latest set of patches.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedPatch should flush all derivative paths (node, alias, redirects), including url variables. Using wildcards, for the sole purpose of flushing cached url variables from the base node. One minor issue with this is if there are 2 node paths, one named
super
and the other one namedsuper_duper
; because of_
whensuper
gets flushedsuper_duper
gets flushed as well._
is generally not used for path naming,-
is the preferred method, so this isn't a major issue; but suggestions would be very very handy on how to solve this potential issue. I need a character or group of characters that drupal will not allow to be used in a path, but apache & the file system understands.Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted