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.

CommentFileSizeAuthor
#1 panels-n2017455-1.patch1.22 KBDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
1.22 KB

This updates panels_simple_cache_clear_cache to match.

DamienMcKenna’s picture

Issue summary: View changes

Mentioned simple.inc to help with findability.

japerry’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit b00040f on 7.x-3.x, 8.x-3.x authored by DamienMcKenna, committed by japerry:
    Issue #2017455 DamienMcKenna: Exported panels won't clear simple cache