Skip to content

Commit cf35e64

Browse files
authored
gw-cache-buster.php: Fixed an issue where form validation would fail when Cache Buster was enabled globally.
1 parent 7161a61 commit cf35e64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gravity-forms/gw-cache-buster.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ public function get_cachebuster_markup( $markup, $atts, $content ) {
285285
}
286286

287287
public function is_cache_busting_applicable() {
288+
if ( isset( $_POST['gform_submit'] ) ) {
289+
return false;
290+
}
291+
288292
// POSTED and LOGGED-IN requests are not typically cached
289293
return empty( $_POST ) || ! is_user_logged_in();
290294
}

0 commit comments

Comments
 (0)