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.
If you look at
if (!empty($this->live_preview)) {
$cache = FALSE;
}
else {
$cache = $this->display_handler->getPlugin('cache');
}
if ($cache) {
$cache->cache_start();
}
if ($cache) {
$cache->post_render($this->display_handler->output);
}
you will see that all of the ifs could be replace by using none, if we are in the live preview of a view.
Comment | File | Size | Author |
---|---|---|---|
#4 | core-1809222-4.patch | 2.03 KB | dawehner |
Comments
Comment #1
xjmComment #2
xjmPostponing this until after our merge.
Comment #3
xjmComment #4
dawehnerAdded also some documentation on the cache/None.php plugin.
Comment #5
damiankloip CreditAttribution: damiankloip commentedThis patch looks fine.
++ for consistency, and always having a cache plugin of some sort.
Comment #6
catchThis looks fair enough, committed/pushed to 8.x.