How to bulk Enable/Disable Nginx FastCGI Cache using ApiMachine Tools?

Manage Nginx Cache (WebUI Method)

 

  1. Sign in to cPFence WebUI on the Main Control Panel server.
  2. Open Tools & UtilitiesApiMachine Bulk Tools.
  3. Use the domain selector if you only want to target certain sites.
  4. Choose Bulk Enable FastCGI Cache to activate caching or Bulk Disable FastCGI Cache to turn it off.
  5. Watch the streaming output for Enhance API responses per domain.

Keep cache mode aligned with your application caching strategy to avoid unexpected behaviors.

Command Line (CLI) Method

  1. SSH into the Main Control Panel server.
  2. Enable caching:
    cpfence --bulk-enable-nginx-cache
  3. Disable caching:
    cpfence --bulk-disable-nginx-cache

Use the cache exclusion tools for areas like carts or dashboards instead of disabling caching entirely whenever possible.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

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...