前言介紹
- 這款 WordPress 外掛「Disable Cart Fragments by Optimocha」是 2019-05-29 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2023-06-26,距離現在已有 678 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 16 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
woocommerce | cart fragments | disable cart fragments | woocommerce cart fragments |
內容簡介
Disable Cart Fragments 是一款輕量級的外掛,通過禁用購物車碎片腳本有效地加快您的 WooCommerce 網站速度。當購物車不再為空時,它會重新加載腳本;因此,它只在購物車為空時起作用。
為什麼禁用購物車碎片很重要?
當你的主題顯示購物車內容(例如頂部菜單)時,WooCommerce 會發送 AJAX 請求來檢查購物車並更新購物車總數。這個 AJAX 請求是為了覆蓋緩存插件,這是好的,但它通常需要時間。
Disable Cart Fragments 如何解決此問題?
使用我們的外掛,你可以兼顧兩全:你仍然可以使用緩存插件,當購物車不為空時,還可以更新購物車總數。通過 WooCommerce 購物車 cookie 進行檢查,因此它仍然使用 JavaScript,但不依賴於緩慢的 AJAX 請求。無論您是否使用緩存插件,檢查都會立即進行。多酷啊!
WooCommerce 優化服務
請隨時聯繫我們,讓我們協助您優化 WooCommerce 網站!網址:Optimocha.com
主要功能
禁用 WooCommerce 購物車碎片。
檢查購物車 cookies,如果不為空,則加載購物車碎片腳本,以便仍然更新購物車總數。
帶給你歡樂。(警告:在某些罕見情況下可能不會帶來歡樂。)
原文外掛簡介
Disable Cart Fragments is a lightweight plugin which effectively speeds up your WooCommerce website by disabling the cart fragments script. It also enqueues the script back when the cart is not empty anymore; so it only works while the cart is empty.
Why is disabling cart fragments important?
WooCommerce makes an AJAX request to check your cart and update your cart totals in wherever your theme shows cart contents (like the header menu). This AJAX call is made to override caching plugins, which is good, but it generally takes time.
How does Disable Cart Fragments solve the issue?
With our plugin, you have the best of both worlds: You keep using the caching plugin and you still get to update the cart totals when the cart is not empty. This check is made via WooCommerce cart cookies, so it still employs JavaScript but doesn’t rely on slow AJAX requests. The check is made instantly, whether you’re using a caching plugin or not. How cool is that?
WooCommerce Optimization Services
Feel free to reach out to us at Optimocha.com and let us help you optimize your WooCommerce website!
Main plugin features
Disables WooCommerce cart fragments.
Checks the cart cookies and if it’s not empty, loads the cart fragments script so the cart totals are still updated.
Brings you joy. (WARNING: Might not bring joy in some rare cases.)
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Disable Cart Fragments by Optimocha」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.2 | 1.4 | 2.0 | 2.1 | 2.2 | 2.3 | 1.01 | 1.21 | 2.1.1 | trunk |
延伸相關外掛(你可能也想知道)
TrimPress 》TrimPress 可以優化並削減 WordPress 的一些無用程式,讓主題更輕量,更安全!, 功能, , 減緩 Heartbeat API 以節省管理-ajax 的使用率。, 禁用資源密集型的 ...。