From 6c9b485f5217913586e89b836c843f233386b60f Mon Sep 17 00:00:00 2001 From: Sebastian Pedersen Date: Wed, 23 Jul 2025 15:14:02 -0700 Subject: [PATCH] `gw-cache-buster.php`: Fixed an issue where form validation would fail when Cache Buster was enabled globally. --- gravity-forms/gw-cache-buster.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gravity-forms/gw-cache-buster.php b/gravity-forms/gw-cache-buster.php index 021510fb7..887087515 100644 --- a/gravity-forms/gw-cache-buster.php +++ b/gravity-forms/gw-cache-buster.php @@ -285,6 +285,10 @@ public function get_cachebuster_markup( $markup, $atts, $content ) { } public function is_cache_busting_applicable() { + if ( isset( $_POST['gform_submit'] ) ) { + return false; + } + // POSTED and LOGGED-IN requests are not typically cached return empty( $_POST ) || ! is_user_logged_in(); }