diff --git a/future/includes/class-gv-view.php b/future/includes/class-gv-view.php index b3c1f8315..c8307341b 100644 --- a/future/includes/class-gv-view.php +++ b/future/includes/class-gv-view.php @@ -1461,18 +1461,23 @@ private function run_db_query( GF_Query $query ) { if ( $long_lived_cache->use_cache() ) { $cached_entries = $long_lived_cache->get(); - if ( $cached_entries ) { + if ( is_array( $cached_entries ) && array_key_exists( 'entries', $cached_entries ) && array_key_exists( 'total', $cached_entries ) ) { + $query->total_found = $cached_entries['total']; + return [ - $cached_entries, + $cached_entries['entries'], $query, ]; } - $db_entries = $query->get(); + $cached_entries = [ + 'entries' => $query->get(), + 'total' => $query->total_found, + ]; - if ( $long_lived_cache->set( $db_entries, 'entries' ) ) { + if ( $long_lived_cache->set( $cached_entries, 'entries' ) ) { return [ - $db_entries, + $cached_entries['entries'], $query, ]; } diff --git a/gravityview.php b/gravityview.php index 848584014..07d158db1 100644 --- a/gravityview.php +++ b/gravityview.php @@ -3,7 +3,7 @@ * Plugin Name: GravityView * Plugin URI: https://www.gravitykit.com * Description: The best, easiest way to display Gravity Forms entries on your website. - * Version: 2.20 + * Version: 2.20.1 * Author: GravityKit * Author URI: https://www.gravitykit.com * Text Domain: gk-gravityview @@ -27,7 +27,7 @@ /** * The plugin version. */ -define( 'GV_PLUGIN_VERSION', '2.20' ); +define( 'GV_PLUGIN_VERSION', '2.20.1' ); /** * Full path to the GravityView file diff --git a/includes/class-admin-welcome.php b/includes/class-admin-welcome.php index ebc8cce81..783e0b7ee 100644 --- a/includes/class-admin-welcome.php +++ b/includes/class-admin-welcome.php @@ -295,6 +295,18 @@ public function changelog_screen() { * - If 4.28, include to 4.26. */ ?> +

2.20.1 on February 29, 2024

+ +

This release fixes an issue with View caching and improves compatibility with the Advanced Custom Fields plugin.

+ +

🐛 Fixed

+ + +

2.20 on February 22, 2024

This release introduces new settings for better control over View caching, adds support for the Advanced Post Creation Add-On when editing entries, fixes a fatal error when exporting entries to CSV, and updates internal components for better performance and compatibility.

@@ -321,7 +333,7 @@ public function changelog_screen() {

🔧 Updated

-

Foundation to versions 1.2.9.

+

Foundation to version 1.2.9.