WP Manifestindependent plugin directory
manifest / performance / nginx-woocommerce-cache-buster

NGINX Cache Bypass for WooCommerce

Super-lightweight plugin that prevents NGINX caching for WooCommerce pages to ensure stock, cart and checkout functionality is well maintained.

by Matt Welland · github.com/matt-welland/nginx-woocommerce-cache-buster · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/matt-welland/nginx-woocommerce-cache-buster/archive/refs/heads/main.zip

Description

This lightweight plugin prevents NGINX caching for WooCommerce pages to ensure stock levels, cart contents, and checkout functionality remain accurate.

Many NGINX caching setups can accidentally serve cached product, cart, or checkout pages, which may cause issues such as:

  • Showing incorrect stock availability
  • Displaying outdated cart totals
  • Serving stale pricing or product information

This plugin ensures that all WooCommerce product, cart, checkout, and account pages bypass server caching, while still allowing other pages to remain cached for performance.

Note that this plugin does not handle updates so for security, you may need to update this yourself.


Features

  • Bypasses NGINX caching for:
    • Product pages
    • Cart page
    • Checkout page
    • My Account pages
  • Super-lightweight and efficient
  • Compatible with most NGINX caching setups
  • No configuration required — just install and activate

Installation

  1. Upload the plugin folder to your /wp-content/plugins/ directory, or install via GitHub.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. No further configuration is required.

Notes

  • This plugin does not disable caching for other pages (e.g., homepage, blog posts, category pages) — they remain cached for improved performance.
  • Designed to work with NGINX caching setups that respect the DONOTCACHEPAGE constant.