I have a Panels page set up at node/%node/search. It uses subpathauto such that if there's a node at alias "mynode" then the Panels page is visible at "mynode/search" and the node's nid is passed to the Panels page as an argument.
In this specific situation I want to be able to set Boost to not cache anything at "mynode/search". But if I set that path to the list in boost_cacheability_pages (and set it to cache all pages except those in the list, of course) it fails to honor my setting; the page is still cached.
This is because boost_is_cacheable() only inspects the $alias and the $normal variables to see if they match the pages. Given the way subpathauto works we need to additionally inspect the $path. I can't see a downside to this. Will provide a patch shortly.
Comment | File | Size | Author |
---|---|---|---|
#2 | boost-page_cacheability_matching_subpathauto-2725037-2.patch | 1.21 KB | azinck |
Comments
Comment #2
azinck CreditAttribution: azinck commentedComment #3
azinck CreditAttribution: azinck commentedJust for the record, these are the values of the relevant variables when it hits this code for me:
$path: "mynode/search"
$alias: "node/123/search"
$normal_path: "node/123/search"