[WordPress] 外掛分享: Fresh Forms for Gravity

WordPress 外掛 Fresh Forms for Gravity 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Fresh Forms for Gravity」是 2019-10-07 上架。
  • 目前有 3000 個安裝啟用數。
  • 上一次更新是 2025-01-21,距離現在已有 102 天。
  • 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 有 7 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

samuelaguilera |

外掛標籤

cache | caching | GravityForms | gravity forms |

內容簡介

快取非常適合頁面或文章內容較少改動的場景,但如果您嵌入表單而且經常更改表單,或使用動態程式碼,在快取頁面上執行程式碼未必能正常運作,或使用依賴動態即時數據的第三方解決方案(例如 reCAPTCHA),在這些情況下使用快取將會造成其他問題。這同樣適用於快取外掛所做的某些自動 JavaScript 優化,這些優化已知會破壞 JavaScript 執行。

一個簡單的解決方法是將快取外掛或代理配置為排除嵌入表單的頁面,但您還需要在創建新頁面或嵌入新表單時記住這點……

這個外掛可以自動處理上述問題,並執行以下操作:

在啟用外掛時清除現有快取。這是必要的,以便允許下一步運行。
動態檢查是否有支持的將 Gravity Forms 嵌入任何方式(請參見下面的列表)。
如果檢查成功,它將防止受支持的快取外掛,瀏覽器和 CDN/代理對此文章或頁面進行快取。

支持的嵌入方式:

WordPress 預設編輯器,shortcode 或 Gutenberg 區塊。任何文章類型的內容,包括頁面和自訂文章。
Avada。已證明以下元素可用:內容框,Gravity Form,Modal,Text Block。其他元素也可能可用,但未經測試。
Elementor。支援添加到文章內容中的以下小工具:Shortcode、Text。
Essential Addons for Elementor Gravity Forms 小工具
Divi。與任一可在內容中插入 GF shortcode 的預設模塊一起工作,例如:Call To Action、Text、Tabs……
WP Tools Gravity Forms Divi Module
由 Lucas Stark 開發的 WooCommerce Gravity Forms 產品附加元件。
ACF 文字、文本區域和所見即所得的文字(WYSIWYG)字段。默認禁用,有關詳細信息請參見常見問題解答。
Beaver Builder。它會檢測添加到 Text Editor 模塊中的 Gravity Forms shortcode。
Ultimate Addons for Beaver Builder Gravity Forms 列表模塊。
Brainstorm Force 開發的 Ultimate Addons for Elementor
WPBakery Page Builder。已證明以下元素可用:「Gravity Form」、「Text Block」。其他元素也可能可用,但未經測試。

如果您沒有使用上述任何嵌入方式,您仍然可以使用篩選器來傳遞要運行 Fresh forms 的文章 ID 號碼。您還可以讓 Fresh Forms 在檢測到表單時添加一個 cookie,以將其作為跳過使用基於 Varnish 的快取的主機的方法。有關詳細信息,請參見常見問題解答。

沒有任何選項頁面。僅將外掛版本保存到數據庫中,以便在需要時處理更新後的操作,不會存儲其他數據。

它應該與支援 DONOTCACHEPAGE 常數的任何快取外掛以及尊重使用 Cache-Control HTTP 標頭的代理一起使用。

支援的快取外掛:

Autoptimize
Cache Enabler
Comet Cache
Hummingbird
Kinsta Cache
LiteSpeed Cache
SiteGround Optimizer
Surge
W3 Total Cache
WP Engine System
WP Fastest Cache
WP Optimize
WP Rock

原文外掛簡介

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:

Flush current cache on plugin activation. This is required in order to allow the next step to run.
Dynamically check if there’s a Gravity Forms for any of the supported embedding methods (see below for the list).
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.
ACF fields of type Text, Text Area, and WYSIWYG. Disabled by default.
Avada. The following elements has been proven to work: Content Boxes, “Gravity Form”, Modal, Text Block. Other elements could work too, but not tested.
Beaver Builder. It will detect Gravity Forms shortcodes added to a Text Editor module.
Conversational Forms add-on. It will automatically detect any form page using the conversational_form post type (requires Conversational Forms add-on 1.3.0+).
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…
Elementor. The following widgets added to the post content are supported: Shortcode, Text.
Essential Addons for Elementor Gravity Forms widget.
GravityKit Gravity Forms Widget for Elementor.
PowerPack for Beaver Builder Gravity Forms Styler module.
Ultimate Addons for Beaver Builder Gravity Forms Styler module.
Ultimate Addons for Elementor By Brainstorm Force.
WooCommerce Gravity Forms Product Add-ons by Lucas Stark.
WPBakery Page Builder. The following elements has been proven to work: “Gravity Form”, Text Block. Other elements could work too, but not tested.
WP Tools Gravity Forms Divi 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 and Optimization plugins supported:

Autoptimize
Cache Enabler
Comet Cache
Hummingbird
Kinsta Cache
LiteSpeed Cache
Page Optimize (Script concatenation only)
Perfmatters (Delay JS exclusions only)
Speed Optimizer (by SiteGround, the plugin with more name changes in the history of WordPress!)
Surge
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 CDN/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).
Note for these cases (caching is done by an external service), Fresh Forms can just include the HTTP header when your web host allows it. Once the header is added, it’s up to the CDN/proxy being used to obey the header and skip caching for the page.
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 required except for ACF support (see FAQ).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Fresh Forms for Gravity」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.1.1 | 1.1.2 | 1.1.5 | 1.1.6 | 1.2.4 | 1.2.8 | 1.2.9 | 1.3.1 | 1.3.5 | 1.4.3 | 1.4.6 | 1.4.7 | 1.4.8 | 1.5.2 | 1.5.3 | trunk | 1.2.10 | 1.3.12 | 1.3.14 | 1.3.15 | 1.3.16 | 1.3.19 | 1.4.11 | 1.4.12 | 1.4.15 | 1.4.16 | 1.4.17 |

延伸相關外掛(你可能也想知道)

  • LiteSpeed Cache 》LiteSpeed Cache for WordPress(LSCWP)是一種全方位的網站加速外掛,包括獨家的伺服器層快取和一系列的優化功能。, LSCWP 支援 WordPress Multisite 及大多...。
  • WP Super Cache 》本外掛可以從您的動態 WordPress 部落格生成靜態 HTML 檔案。在產生 HTML 檔案後,您的網頁伺服器會傳送該檔案,而不是處理比較沉重、耗費更多資源的 WordPre...。
  • WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 》WP-Optimize Cache 是一個革命性的、全方位的 WordPress 效能外掛,將您的網站做快取、清理資料庫及圖片壓縮,讓您的網站快速且最佳化。我們的快取功能是建構...。
  • W3 Total Cache 》W3 Total Cache (W3TC) 透過整合內容傳遞網絡 (CDN) 和最新最佳實踐等功能,提高網站性能、減少加載時間,增進 SEO、核心 Web 主要指標和整體用戶體驗。W3TC ...。
  • Speed Optimizer – The All-In-One Performance-Boosting Plugin 》SiteGround Optimizer 插件是由 SiteGround 開發的,可以大幅提高任何托管環境下的 WordPress 網站性能。, 最初設計用於 SiteGround 的服務器,現在已經有近 ...。
  • Breeze – WordPress Cache Plugin 》Breeze是由Cloudways團隊開發的一款免費、簡單(卻功能強大)且使用者友好的WordPress快取外掛。它提供不同層級的WordPress效能優化選項,在WordPress、搭配W...。
  • Redis Object Cache 》一個由 Redis 提供支援的持久化物件快取後端。支援 Predis、PhpRedis (PECL)、Relay、複寫、哨兵、叢集化和 WP-CLI。, 若要調整連線參數、前綴的快取鍵或設定...。
  • Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN 》Hummingbird 透過添加細調控制文件壓縮、延後 CSS 和 JavaScript 樣式和腳本、CSS 和 JS 壓縮,以及懶加載等全球最佳緩存優化方法,讓您的網站更快,並優化網...。
  • Cache Enabler 》Cache Enabler 是個簡單卻強大的 WordPress 快取外掛,使用起來簡單且只需要最小化的設定,最重要的是能夠幫助網站提升效能來達到更快的載入時間。它會將前端...。
  • Super Page Cache 》為何要選擇這個外掛?, 這個 Super Page Cache for Cloudflare 外掛可以讓您的網站加速,將網站快取提升至另一個層級。此外,這個外掛不僅會快取靜態文件(例...。
  • SpinupWP 》這個外掛確保在您的網站內容更改時清除 SpinupWP 頁面快取。還沒使用 SpinupWP 嗎?請在此註冊。, SpinupWP是一個現代的伺服器控制面板,旨在協助您實施每次...。
  • WP Meteor Website Speed Optimization Addon 》 , WP Meteor 是一種全新的優化網頁速度的方式。即使在現有的優化基礎之上,例如:, , Autoptimize, WP Rocket, WP Total Cache, WP Super Cache, , WP Meteo...。
  • Server-Side Cache AutoPurge 》這個外掛能在您進行網站變更(例如更新文章)後自動清除伺服器端快取。, 自動清除功能僅適用於由SureSupport管理的使用主機控制面板中提供的「伺服器端快取」...。
  • Leverage Browser Caching 》這個 WordPress 外掛名稱就是『Leverage Browser Caching』,它可以解決你的 WordPress 網站中與檔案快取相關的問題,同時也可以提升網站在 Pingdom、GTmetri...。
  • Cachify 》Cachify 通過將帖子、頁面和自訂帖子類型作為靜態內容緩存,優化您的頁面載入。您可以選擇通過數據庫、網頁服務器的硬盤驅動器(HDD)、Memcached(僅在 Ngin...。

文章
Filter
Apply Filters
Mastodon