Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gravity-forms/gw-cache-buster.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Loading