If a Views pane uses Views caching (for example, "Time based" with settings of "1 hour / 1 hour"), then the live preview won't update as you change settings. However, if you change the settings, save and then clear caches, the View will update to reflect those changes. Or, if you clear caches and then edit the pane (to get the live preview) then it'll reflect the first change, but then be "stuck" after that.

We should clear the the Views cache for a particular View when rendering its live preview.

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new899 bytes

Here's a patch that works in my limited testing. We should probably have a Behat test for this!

cboyden’s picture

StatusFileSize
new13.24 KB

Here's a patch for Panopoly Test that adds a cached view and a Behat test to livepreview.feature.

cboyden’s picture

I tested the patches on a vanilla Panopoly install and on a child distribution. The Magic patch works as expected. For the new tests, they fail without the Magic patch, and pass with it.

dsnopek’s picture

Thanks! Here's a quick Travis build just so there aren't any surprises on commit:

https://travis-ci.org/panopoly/panopoly/builds/580390187

dsnopek’s picture

Travis failed because Travis. :-( Here's a new build that should work better:

https://travis-ci.org/panopoly/panopoly/builds/580422790

  • dsnopek committed 498acb6 on 7.x-1.x authored by cboyden
    Issue #3076935 by dsnopek, cboyden: Live preview doesn't update when...
dsnopek’s picture

Status: Needs review » Fixed

Tests pass! Committed

Status: Fixed » Closed (fixed)

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