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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

azinck created an issue. See original summary.

azinck’s picture

Status: Active » Needs review
FileSize
1.21 KB
azinck’s picture

Just 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"