[WordPress] 外掛分享: Optimize AdScale Calls For WooCommerce

首頁外掛目錄 › Optimize AdScale Calls For WooCommerce
10+
安裝啟用
尚無評分
828 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.0+ v0.3.1 上架:2024-01-15

內容簡介

總結: 這個外掛可以減少官方ad-scale外掛產生的過多AJAX呼叫。外掛檢查購物車數據是否有更改,如果沒有更改就阻止AJAX呼叫,以避免浪費伺服器資源。該外掛目前沒有選項,也不會返回之前購物車的內容給AJAX,只會阻止新的AJAX呼叫。

問題與答案:
- Adscale官方的WooCommerce外掛在每次頁面載入時會產生什麼呼叫?
- 每次頁面載入時,Adscale官方的WooCommerce外掛會產生一個AJAX呼叫來獲取購物車數據。
- 這個外掛在購物車為空或未更改時是否仍會運行AJAX呼叫?
- 是的,這個外掛每次都會運行AJAX呼叫,無論購物車是否為空或未更改,導致運行了許多不必要的AJAX呼叫並消耗伺服器資源。
- 這個外掛如何阻止不必要的AJAX呼叫?
- 這個外掛檢查了woocommerce_cart_hash是否有更改,如果未更改,就會阻止AJAX呼叫的運行。
- 這個外掛是否返回之前購物車的內容給AJAX?
- 不,此外掛目前不會返回之前購物車的內容給AJAX,只會阻止新的AJAX呼叫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Optimize AdScale Calls For WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

UPDATE: The plugin is no longer needed as Adscale fixed the issue. Please use the official adscale plugin
TL;DR : Reduces the excess of AJAX calls that the official adscale plugins generates.
Adscale official WooCommerce plugin creates an ajax call on every page load, to get cart data. The AJAX call is run every time, no matter if the cart is empty or hasn’t changed at all and thus, many multiple unneccesarry AJAX calls are run and server resources are used.
This plugin checks if the woocommerce_cart_hash changed and if not, prevents the XHR from running.
At this point, the plugin has no options, nor does it return the previous cart contents for the XHR, only blocks the new XHR calls.
Please check : https://adscale.com/integrations/woocommerce/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon