Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In panels_simple_cache_get_id() (simple.inc) it uses three different elements to decide what the cache cid should be:
// If the panel is stored in the database it'll have a numeric did value.
if (is_numeric($display->did)) {
$id .= ':' . $display->did;
}
// Exported panels won't have a numeric did but may have a usable cache_key.
elseif (!empty($display->cache_key)) {
$id .= ':' . str_replace('panel_context:', '', $display->cache_key);
}
// Alternatively use the css_id.
elseif (!empty($display->css_id)) {
$id .= ':' . $display->css_id;
}
// Failover to just appending the did, which may be the completely unusable
// string 'new'.
else {
$id .= ':' . $display->did;
}
However, in panels_simple_cache_clear_cache() only checks the (irrelevant) $display->owner->id or the $display->did.
Comment | File | Size | Author |
---|---|---|---|
#1 | panels-n2017455-1.patch | 1.22 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaThis updates panels_simple_cache_clear_cache to match.
Comment #1.0
DamienMcKennaMentioned simple.inc to help with findability.
Comment #2
japerryCommitted!
http://drupalcode.org/project/panels.git/commit/b00040f