When a panel/panelizer is recreated from feature, saved $display in hook_panels_display_save() doesn't contain $cache_key, this results as an error displayed in page and saved panel is not cached, and sometimes panels from page edit disappear. I used instead of panels_edit_cache_set() the panels_edit_cache_get_default() to set cache, last function can set cache even if $cache_key doesn't exist.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sdstyles’s picture

sdstyles’s picture

Status: Active » Needs review
mglaman’s picture

Great catch! Was experiencing this myself and wasn't sure where to track it down!

  • mglaman committed fa651d9 on 7.x-1.x authored by sdstyles
    Issue #2538468 by sdstyles: Missing $cache_key in...
mglaman’s picture

Status: Needs review » Fixed

Committed. Going to tag a new beta, as I feel something in Panels changed (maybe? or Chaos Tools) and this module will keep breaking things.

Status: Fixed » Closed (fixed)

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

jadsay’s picture

This patch is removing the changes made to fix Issue: #2158015.

jadsay’s picture

Status: Closed (fixed) » Needs work
jadsay’s picture

After checking the code of panels_edit_cache_get_default(), i noticed that it assigns the display's did as a cache_key.
The cache key format is usually in this form: mini_panels:DISPLAY_MACHINE_NAME, not the display's did so i think it's better to use the panels_edit_cache_get_default() function when cache_key is empty.

jadsay’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Status: Needs work » Needs review

  • kmonty committed 13892e6 on 7.x-1.x authored by jadsay
    Issue #2538468 by jadsay, sdstyles: Missing $cache_key in...
kmonty’s picture

Status: Needs review » Fixed

Thanks for working on this issue! Should address issues people have had across the saving mechanism.

Committed.

Status: Fixed » Closed (fixed)

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