How to bulk Add/Remove Nginx Cache Exclusions using ApiMachine Tools?

Manage Cache Exclusion Paths (WebUI Method)

 

  1. Log into cPFence WebUI ➜ Tools & UtilitiesApiMachine Bulk Tools.
  2. Choose Add Nginx Cache Exclusion to keep dynamic paths uncached, or Remove Nginx Cache Exclusion to resume caching.
  3. Enter the path (e.g. /wp-admin, /cart/) and click the corresponding button.
  4. If needed, enable the domain selector to limit changes to specific sites.
  5. Review the output log for success per domain.

Adding exclusions preserves performance while keeping login, cart, or dashboard routes dynamic.

Command Line (CLI) Method

  1. SSH into the Main Control Panel server.
  2. Add an exclusion:
    cpfence --bulk-add-nginx-cache-exclude /checkout/
  3. Remove an exclusion:
    cpfence --bulk-remove-nginx-cache-exclude /checkout/

Validate the paths exactly as they appear in URLs—leading slashes are required.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

How to Bulk Enable Force SSL Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Bulk Enable Redis Caching Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Bulk Generate Mail SSL Certificates Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Bulk Generate SSL Certificates Using cPFence ApiMachine?

cPFence offers a powerful, browser-based WebUI for managing your Enhance cluster. The WebUI is...

How to Generate an API Token for cPFence, and Is It Required?

The cPFence API token must be generated in your Enhance Control Panel. Follow the steps below to...