Fresh Forms for Gravity

Fresh Forms for Gravity

from 0$

Fresh Forms for Gravity is a WP Plugin Package from the Open Source WP Plugins range Automatically exclude from cache posts (any type) or pages where the content has a Gravity…

For more information about a tailored WP Plugin Package like Fresh Forms for Gravity please contact us directly.

Caching is great for scenarios where your post or page content it’s not changed frequently, but if you have a form embedded to which you do changes very often or you’re using dynamic code, that doesn’t run for a cached page, or using third-party solutions relaying in dynamic live data (e.g. reCAPTCHA), using caching in these cases is going to cause issues. The same applies to certain automatic JS optimizations done by caching plugins that are known to break JS execution easily.

An easy solution is to configure your caching plugin or proxy to exclude the page where the form is embedded, but you need also to remember this when you create a new page or embed a new form in an existing page…

This plugin will take care of the above automatically doing the following:

  1. Flush current cache on plugin activation. This is required in order to allow the next step to run.
  2. Dynamically check if there’s a Gravity Forms for any of the supported embedding methods (see below for the list).
  3. If so, it will prevent post/page from being cached by any of the supported caching plugins, browsers and CDN/Proxies.

Embedding methods supported:

  • WordPress default editor, shortcode or Gutenberg block. Content of any post type, including pages and custom posts.
  • Elementor. The following widgets added to the post content are supported: Shortcode, Text.
  • Essential Addons for Elementor Gravity Forms widget.
  • Divi. It should work with any of the default modules where you can insert a GF shortcode into the content. e.g. Call To Action, Text, Tabs…
  • WP Tools Gravity Forms Divi Module.
  • WooCommerce Gravity Forms Product Add-ons by Lucas Stark.
  • ACF fields of type Text, Text Area, and WYSIWYG. Disabled by default, please see FAQ for more details.
  • Beaver Builder. It will detect Gravity Forms shortcodes added to a Text Editor module.
  • Ultimate Addons for Beaver Builder Gravity Forms Styler module.

If you’re not using any of the above embedding methods you can still use Fresh Forms with a filter to pass the ID number of the posts where you want to run Fresh forms. You can also make Fresh Forms to add a cookie when a form is detected to use this cookie as a way to skip caching for hosts using Varnish based caching. Please see FAQ for more details.

There’s no options page. Only the plugin version is saved to the database to be able to handle actions after an update when needed, no other data is stored.

It should work with any caching plugin with support for DONOTCACHEPAGE constant, and proxies respecting the use Cache-Control HTTP header.

Caching plugins supported:

  • Autoptimize
  • Comet Cache
  • Hummingbird
  • Kinsta Cache
  • LiteSpeed Cache
  • SG Optimizer
  • W3 Total Cache
  • WP Engine System
  • WP Fastest Cache
  • WP Optimize
  • WP Rocket
  • WP Super Cache

Caching plugins NOT supported:

  • Breeze. It doesn’t support DONOTCACHEPAGE constant or filters to skip caching. Check FAQ for a workaround.
  • NitroPack. It doesn’t support DONOTCACHEPAGE constant or filters to skip caching. Check FAQ for a workaround.

CloudFlare and other proxies:

This plugin will add appropriate HTTP header to pages with a Gravity Forms form to exlude the page HTML from caching when the web host setup allows it.

By default CloudFlare doesn’t cache the page HTML, it does only when you have configured it to “Cache Everything”. In this case, after activating the plugin, you need to purge cache in your CloudFlare account or wait for cache expiration to let CloudFlare know the page must be excluded from caching.

Certain hosts like WP Engine and Kinsta don’t allow HTTP headers modification from WordPress side of things, therefore CloudFlare support will not work for these hosts.

Other proxy services should work in a similar way, but I don’t have access to test any other proxy service. Feel to reach me if you want to provide me access to add support for your proxy service (documentation for the proxy would be required).

Requirements

  • PHP 7.0 or higher.
  • WordPress 4.9 or higher.
  • Gravity Forms 2.3 or higher.
  • Only forms embedded using classic editor shortcode or Gutenberg block are supported.

Usage

Just install and activate, no settings page.

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Fresh Forms for Gravity

typePlugin
version1.2.10
descriptionAutomatically exclude from cache posts (any type) or pages where the content has a Gravity Forms shortcode or block. WooCommerce products and ACF are …