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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | panopoly_test-views-cache-3076935-3.patch | 13.24 KB | cboyden |
| #2 | panopoly_magic-views-cache-3076935-2.patch | 899 bytes | dsnopek |
Comments
Comment #2
dsnopekHere's a patch that works in my limited testing. We should probably have a Behat test for this!
Comment #3
cboyden commentedHere's a patch for Panopoly Test that adds a cached view and a Behat test to livepreview.feature.
Comment #4
cboyden commentedI 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.
Comment #5
dsnopekThanks! Here's a quick Travis build just so there aren't any surprises on commit:
https://travis-ci.org/panopoly/panopoly/builds/580390187
Comment #6
dsnopekTravis failed because Travis. :-( Here's a new build that should work better:
https://travis-ci.org/panopoly/panopoly/builds/580422790
Comment #8
dsnopekTests pass! Committed