Changeset 3459604
- Timestamp:
- 02/12/2026 07:38:00 AM (5 months ago)
- Location:
- mamba-cache-for-woocommerce
- Files:
-
- 2 edited
-
tags/1.0.0/readme.txt (modified) (9 diffs)
-
trunk/readme.txt (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mamba-cache-for-woocommerce/tags/1.0.0/readme.txt
r3458799 r3459604 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 WC requires at least: 10.0.08 WC tested up to: 10.4.37 WC requires at least: 5.0.0 8 WC tested up to: 9.6.0 9 9 Requires PHP: 7.4 10 10 Stable tag: 1.0.0 … … 71 71 – **Retention Policies** – Customizable cleanup retention for different data types 72 72 73 ### 🎨 Critical CSS & CSS Optimization 74 75 Eliminate render-blocking CSS and improve Core Web Vitals: 76 77 – **Critical CSS Inlining** – Automatically extract and inline above-the-fold CSS 78 – **CSS Deferring** – Load non-critical stylesheets asynchronously after page render 79 – **Force-Include Selectors** – Specify CSS selectors to always include in critical CSS (Premium) 80 – **Per-Page-Type CSS** – Custom critical CSS for product, shop, category, cart, checkout pages (Premium) 81 – **Media Print Technique** – Uses media="print" with automatic no-JS fallback 82 73 83 ### 🚀 Overhead Optimization 74 84 … … 76 86 77 87 – **Asset Optimization** – Dequeue WooCommerce CSS/JS on non-product pages 78 – **Checkout Optimization** – Optimize payment gateway loading and form performance 88 – **HTML/CSS/JS Minification** – Conservative (HTML-only) or Aggressive (HTML + inline CSS/JS, Premium) 89 – **JavaScript Delay** – Delay non-critical third-party scripts until user interaction (Premium) 90 – **Checkout Optimization** – Optimize payment gateway loading and form performance (Premium) 79 91 – **Price HTML Simplification** – Streamline product price display markup 80 92 – **Hover Prefetch** – Preload product/category pages on hover for instant navigation 81 – **Resource Hints** – DNS prefetch for payment gateways and external services 82 – **Heartbeat Control** – Reduce AJAX frequency on product edit screens 93 – **Resource Hints** – DNS prefetch and preconnect for external services 94 – **Font Preloading** – Preload critical web fonts (Premium) 95 – **Heartbeat Control** – Reduce AJAX frequency on frontend, admin, and editor 96 – **Order Attribution Disable** – Remove WooCommerce order attribution tracking script 83 97 84 98 ### 🌐 CDN Integration … … 114 128 – **Savings Reports** – Bandwidth and database savings from optimizations 115 129 116 ### 🛠️ Developer-Friendly 130 ### 📊 Logging & Diagnostics 131 132 Comprehensive logging for debugging and monitoring: 133 134 – **Cache Event Logging** – Track cache hits, misses, and purge operations 135 – **Error Tracking** – Monitor warmup failures and cache generation errors 136 – **Retention Policies** – Configurable log retention periods 137 – **Log Viewer** – Built-in admin interface for viewing and filtering logs 138 139 ### ⭐ Premium Features 140 141 Unlock advanced optimizations with Mamba Premium: 142 143 – **Store API Caching** – High-performance caching for WooCommerce Store API endpoints 144 – **JavaScript Delay** – Delay non-critical third-party scripts until user interaction 145 – **Checkout Optimization** – Optimize payment gateway loading and form performance 146 – **Font Preloading** – Preload critical web fonts for faster rendering 147 – **Preconnect Domains** – Early connection to external services 148 – **Aggressive Minification** – HTML + inline CSS/JS minification 149 – **Custom Critical CSS** – Per-page-type critical CSS customization 150 – **Force-Include Selectors** – Specify CSS selectors to always include in critical CSS 151 – **Transactional Email Deferring** – Defer order emails to background processing 152 153 ### 🔧 Developer-Friendly 117 154 118 155 Comprehensive hooks and APIs for WooCommerce customization: 119 156 120 – ** 60+ Filters** – Customize cache keys, TTL, invalidation for products/categories121 – ** 30+ Actions** – Hook into product updates, order processing, cart changes157 – **70+ Filters** – Customize cache keys, TTL, variants, warmup, invalidation, and more 158 – **7 Actions** – Hook into cache purges, Store API clears, database task completion 122 159 – **WP-CLI Commands** – Command-line cache management for WooCommerce sites 123 160 – **REST API** – Programmatic cache control for headless WooCommerce … … 142 179 Full command-line interface for WooCommerce cache management and automation: 143 180 181 **Cache Purge Commands:** 182 183 – `wp mamba-cache-for-woocommerce purge all` – Purge all page cache and related markers 184 – `wp mamba-cache-for-woocommerce purge store-api` – Purge Store API cache only 185 – `wp mamba-cache-for-woocommerce purge url <url>` – Purge specific URL 186 – `wp mamba-cache-for-woocommerce purge urls <file>` – Purge URLs from a file (one per line) 187 – `wp mamba-cache-for-woocommerce purge product <id>` – Purge cache for specific product ID 188 – `wp mamba-cache-for-woocommerce purge category <term_id>` – Purge cache for specific category 189 – `wp mamba-cache-for-woocommerce purge shop` – Purge shop page cache 190 – `wp mamba-cache-for-woocommerce purge home` – Purge homepage cache 191 – `wp mamba-cache-for-woocommerce purge tags <tag1,tag2,...>` – Purge CDN by cache tags 192 193 **Warmup Commands:** 194 195 – `wp mamba-cache-for-woocommerce warmup start` – Start background cache warmup 196 – `wp mamba-cache-for-woocommerce warmup status` – Check warmup job progress (JSON output) 197 – `wp mamba-cache-for-woocommerce warmup cancel` – Cancel running warmup job 198 – `wp mamba-cache-for-woocommerce warmup resume` – Resume paused warmup job 199 – `wp mamba-cache-for-woocommerce warmup errors` – View warmup errors (JSON output) 200 201 **Options:** 202 203 – `--and-warm` – Automatically warm the URL after purging (available on url, urls, category, shop, home commands) 204 205 **Examples:** 206 207 `# Purge all cache` 208 wp mamba-cache-for-woocommerce purge all 209 210 `# Purge and warm a specific product` 211 wp mamba-cache-for-woocommerce purge product 123 --and-warm 212 213 `# Purge shop page and warm it` 214 wp mamba-cache-for-woocommerce purge shop --and-warm 215 216 `# Start warmup job` 217 wp mamba-cache-for-woocommerce warmup start 218 219 `# Check warmup status` 220 wp mamba-cache-for-woocommerce warmup status 221 222 223 ### REST API Endpoints 224 225 Programmatic access to Mamba's WooCommerce caching and optimization features: 226 227 **Status & Monitoring:** 228 229 – `GET /wp-json/mamba-wc/v1/cache-status` – Cache status, hit rates, coverage metrics 230 – `GET /wp-json/mamba-wc/v1/stats` – Detailed performance statistics 231 – `GET /wp-json/mamba-wc/v1/cache-counts` – Cache counts by content type (products, categories, etc.) 232 – `GET /wp-json/mamba-wc/v1/purge-stats` – Purge operation statistics 233 144 234 **Cache Management:** 145 235 146 – `wp mamba purge` – Purge all cache (page cache, Store API, fragments) 147 – `wp mamba purge page` – Purge only page cache 148 – `wp mamba purge api` – Purge only Store API cache 149 – `wp mamba purge url <url>` – Purge specific WooCommerce product/category URL 150 – `wp mamba purge product <id>` – Purge cache for specific product ID 151 – `wp mamba purge category <slug>` – Purge cache for specific category 236 – `POST /wp-json/mamba-wc/v1/purge` – Purge caches (body: `{type: "all|page|api|url", url: "..."}`) 152 237 153 238 **Warmup Operations:** 154 239 155 – `wp mamba warmup` – Start background cache warmup for all catalog pages 156 – `wp mamba warmup products` – Warm up all product pages 157 – `wp mamba warmup categories` – Warm up all category/tag pages 158 – `wp mamba warmup shop` – Warm up main shop page 159 – `wp mamba warmup status` – Check warmup job progress 160 161 **Database Operations:** 162 163 – `wp mamba db optimize` – Run all database cleanup tasks 164 – `wp mamba db optimize sessions` – Clean expired WooCommerce sessions 165 – `wp mamba db optimize orders` – Clean orphaned order data 166 – `wp mamba db optimize products` – Clean orphaned product data 167 – `wp mamba db status` – Show database optimization status 168 169 **Monitoring & Diagnostics:** 170 171 – `wp mamba status` – Display comprehensive cache and performance statistics 172 – `wp mamba status detailed` – Show detailed metrics including hit rates, coverage, and savings 173 – `wp mamba config` – Display current Mamba configuration 174 – `wp mamba test` – Run cache functionality tests 175 176 **Examples:** 177 178 # Purge all cache 179 wp mamba purge 180 181 # Warm up product catalog after bulk import 182 wp mamba warmup products 183 184 # Clean database after order migration 185 wp mamba db optimize orders 186 187 # Check cache performance 188 wp mamba status detailed 189 190 191 ### REST API Endpoints 192 193 Programmatic access to Mamba's WooCommerce caching and optimization features: 194 195 **Status & Monitoring:** 196 197 – `GET /wp-json/mamba/v1/status` – Cache status, hit rates, coverage metrics 198 – `GET /wp-json/mamba/v1/stats` – Detailed performance statistics 199 – `GET /wp-json/mamba/v1/warmup/{job_id}` – Background warmup job status 200 – `GET /wp-json/mamba/v1/db/counts` – Database cleanup task counts 201 202 **Cache Management:** 203 204 – `POST /wp-json/mamba/v1/purge` – Purge all caches 205 – `POST /wp-json/mamba/v1/purge/page` – Purge page cache only 206 – `POST /wp-json/mamba/v1/purge/api` – Purge Store API cache only 207 – `POST /wp-json/mamba/v1/purge/url` – Purge specific URL (body: `{url: "https://example.com/product/test"}`) 208 – `POST /wp-json/mamba/v1/purge/product/{id}` – Purge specific product 209 – `POST /wp-json/mamba/v1/purge/category/{slug}` – Purge specific category 210 211 **Warmup Operations:** 212 213 – `POST /wp-json/mamba/v1/warmup` – Start background warmup 214 – `POST /wp-json/mamba/v1/warmup/products` – Warm up product pages 215 – `POST /wp-json/mamba/v1/warmup/categories` – Warm up category pages 216 – `GET /wp-json/mamba/v1/warmup/jobs` – List active warmup jobs 217 218 **Database Operations:** 219 220 – `POST /wp-json/mamba/v1/db/optimize` – Run database cleanup 221 – `POST /wp-json/mamba/v1/db/optimize/{task}` – Run specific cleanup task 222 – `GET /wp-json/mamba/v1/db/tasks` – List available cleanup tasks 223 – `GET /wp-json/mamba/v1/db/overview` – Database optimization overview 224 225 **Configuration:** 226 227 – `GET /wp-json/mamba/v1/settings` – Get current settings 228 – `POST /wp-json/mamba/v1/settings` – Update settings (requires admin authentication) 229 – `GET /wp-json/mamba/v1/cdn/test` – Test CDN connection 230 – `POST /wp-json/mamba/v1/cdn/purge` – Send CDN purge request 240 – `POST /wp-json/mamba-wc/v1/warmup` – Start foreground warmup 241 – `POST /wp-json/mamba-wc/v1/background-warmup` – Start background warmup job 242 – `GET /wp-json/mamba-wc/v1/warmup-status` – Check warmup job progress 243 – `POST /wp-json/mamba-wc/v1/warmup-cancel` – Cancel running warmup job 244 – `POST /wp-json/mamba-wc/v1/warmup-resume` – Resume paused warmup job 245 – `GET /wp-json/mamba-wc/v1/warmup-errors` – Get warmup error log 246 – `GET /wp-json/mamba-wc/v1/background-jobs` – List active background jobs 231 247 232 248 **Authentication:** 233 249 234 All REST endpoints require WordPress admin authentication . Use standard WordPress authentication methods (cookies, application passwords, or OAuth).250 All REST endpoints require WordPress admin authentication (`manage_options` or `manage_woocommerce` capability). Use standard WordPress authentication methods (cookies, application passwords, or OAuth). 235 251 236 252 … … 241 257 When updating products via API, automatically purge affected cache: 242 258 243 # After updating product via WooCommerce REST API 244 245 curl -X POST https://example.com/wp-json/mamba/v1/purge/product/123 \ 259 `# After updating product via WooCommerce REST API` 260 curl -X POST https://example.com/wp-json/mamba-wc/v1/purge \ 261 -H "Content-Type: application/json" \ 262 -d '{"type":"url","url":"https://example.com/product/my-product/"}' \ 246 263 -u username:password 247 264 … … 251 268 Include cache warmup in deployment pipelines: 252 269 253 # After deployment, warm up critical pages 254 255 wp mamba warmup shop 256 wp mamba warmup categories 257 wp mamba purge # Clear any stale cache 270 `# After deployment, clear stale cache and warm up` 271 wp mamba-cache-for-woocommerce purge all 272 wp mamba-cache-for-woocommerce warmup start 258 273 259 274 … … 262 277 Monitor WooCommerce performance in external systems: 263 278 264 # Check cache hit rates 265 266 wp mamba status | grep "Hit Rate" 279 `# Check warmup status` 280 wp mamba-cache-for-woocommerce warmup status 267 281 268 282 … … 371 385 = Can I customize cache behavior? = 372 386 373 Yes, extensively! Mamba provides 60+ filters for developers to customize TTL, cache keys, invalidation logic, and more. See our [Developer Reference](docs/api-reference.html) for details.387 Yes, extensively! Mamba provides 70+ filters for developers to customize TTL, cache keys, variants, warmup behavior, and more. See our [Developer Reference](docs/api-reference.html) for details. 374 388 375 389 = What happens if I deactivate Mamba? = -
mamba-cache-for-woocommerce/trunk/readme.txt
r3458799 r3459604 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 WC requires at least: 10.0.08 WC tested up to: 10.4.37 WC requires at least: 5.0.0 8 WC tested up to: 9.6.0 9 9 Requires PHP: 7.4 10 10 Stable tag: 1.0.0 … … 71 71 – **Retention Policies** – Customizable cleanup retention for different data types 72 72 73 ### 🎨 Critical CSS & CSS Optimization 74 75 Eliminate render-blocking CSS and improve Core Web Vitals: 76 77 – **Critical CSS Inlining** – Automatically extract and inline above-the-fold CSS 78 – **CSS Deferring** – Load non-critical stylesheets asynchronously after page render 79 – **Force-Include Selectors** – Specify CSS selectors to always include in critical CSS (Premium) 80 – **Per-Page-Type CSS** – Custom critical CSS for product, shop, category, cart, checkout pages (Premium) 81 – **Media Print Technique** – Uses media="print" with automatic no-JS fallback 82 73 83 ### 🚀 Overhead Optimization 74 84 … … 76 86 77 87 – **Asset Optimization** – Dequeue WooCommerce CSS/JS on non-product pages 78 – **Checkout Optimization** – Optimize payment gateway loading and form performance 88 – **HTML/CSS/JS Minification** – Conservative (HTML-only) or Aggressive (HTML + inline CSS/JS, Premium) 89 – **JavaScript Delay** – Delay non-critical third-party scripts until user interaction (Premium) 90 – **Checkout Optimization** – Optimize payment gateway loading and form performance (Premium) 79 91 – **Price HTML Simplification** – Streamline product price display markup 80 92 – **Hover Prefetch** – Preload product/category pages on hover for instant navigation 81 – **Resource Hints** – DNS prefetch for payment gateways and external services 82 – **Heartbeat Control** – Reduce AJAX frequency on product edit screens 93 – **Resource Hints** – DNS prefetch and preconnect for external services 94 – **Font Preloading** – Preload critical web fonts (Premium) 95 – **Heartbeat Control** – Reduce AJAX frequency on frontend, admin, and editor 96 – **Order Attribution Disable** – Remove WooCommerce order attribution tracking script 83 97 84 98 ### 🌐 CDN Integration … … 114 128 – **Savings Reports** – Bandwidth and database savings from optimizations 115 129 116 ### 🛠️ Developer-Friendly 130 ### 📊 Logging & Diagnostics 131 132 Comprehensive logging for debugging and monitoring: 133 134 – **Cache Event Logging** – Track cache hits, misses, and purge operations 135 – **Error Tracking** – Monitor warmup failures and cache generation errors 136 – **Retention Policies** – Configurable log retention periods 137 – **Log Viewer** – Built-in admin interface for viewing and filtering logs 138 139 ### ⭐ Premium Features 140 141 Unlock advanced optimizations with Mamba Premium: 142 143 – **Store API Caching** – High-performance caching for WooCommerce Store API endpoints 144 – **JavaScript Delay** – Delay non-critical third-party scripts until user interaction 145 – **Checkout Optimization** – Optimize payment gateway loading and form performance 146 – **Font Preloading** – Preload critical web fonts for faster rendering 147 – **Preconnect Domains** – Early connection to external services 148 – **Aggressive Minification** – HTML + inline CSS/JS minification 149 – **Custom Critical CSS** – Per-page-type critical CSS customization 150 – **Force-Include Selectors** – Specify CSS selectors to always include in critical CSS 151 – **Transactional Email Deferring** – Defer order emails to background processing 152 153 ### 🔧 Developer-Friendly 117 154 118 155 Comprehensive hooks and APIs for WooCommerce customization: 119 156 120 – ** 60+ Filters** – Customize cache keys, TTL, invalidation for products/categories121 – ** 30+ Actions** – Hook into product updates, order processing, cart changes157 – **70+ Filters** – Customize cache keys, TTL, variants, warmup, invalidation, and more 158 – **7 Actions** – Hook into cache purges, Store API clears, database task completion 122 159 – **WP-CLI Commands** – Command-line cache management for WooCommerce sites 123 160 – **REST API** – Programmatic cache control for headless WooCommerce … … 142 179 Full command-line interface for WooCommerce cache management and automation: 143 180 181 **Cache Purge Commands:** 182 183 – `wp mamba-cache-for-woocommerce purge all` – Purge all page cache and related markers 184 – `wp mamba-cache-for-woocommerce purge store-api` – Purge Store API cache only 185 – `wp mamba-cache-for-woocommerce purge url <url>` – Purge specific URL 186 – `wp mamba-cache-for-woocommerce purge urls <file>` – Purge URLs from a file (one per line) 187 – `wp mamba-cache-for-woocommerce purge product <id>` – Purge cache for specific product ID 188 – `wp mamba-cache-for-woocommerce purge category <term_id>` – Purge cache for specific category 189 – `wp mamba-cache-for-woocommerce purge shop` – Purge shop page cache 190 – `wp mamba-cache-for-woocommerce purge home` – Purge homepage cache 191 – `wp mamba-cache-for-woocommerce purge tags <tag1,tag2,...>` – Purge CDN by cache tags 192 193 **Warmup Commands:** 194 195 – `wp mamba-cache-for-woocommerce warmup start` – Start background cache warmup 196 – `wp mamba-cache-for-woocommerce warmup status` – Check warmup job progress (JSON output) 197 – `wp mamba-cache-for-woocommerce warmup cancel` – Cancel running warmup job 198 – `wp mamba-cache-for-woocommerce warmup resume` – Resume paused warmup job 199 – `wp mamba-cache-for-woocommerce warmup errors` – View warmup errors (JSON output) 200 201 **Options:** 202 203 – `--and-warm` – Automatically warm the URL after purging (available on url, urls, category, shop, home commands) 204 205 **Examples:** 206 207 `# Purge all cache` 208 wp mamba-cache-for-woocommerce purge all 209 210 `# Purge and warm a specific product` 211 wp mamba-cache-for-woocommerce purge product 123 --and-warm 212 213 `# Purge shop page and warm it` 214 wp mamba-cache-for-woocommerce purge shop --and-warm 215 216 `# Start warmup job` 217 wp mamba-cache-for-woocommerce warmup start 218 219 `# Check warmup status` 220 wp mamba-cache-for-woocommerce warmup status 221 222 223 ### REST API Endpoints 224 225 Programmatic access to Mamba's WooCommerce caching and optimization features: 226 227 **Status & Monitoring:** 228 229 – `GET /wp-json/mamba-wc/v1/cache-status` – Cache status, hit rates, coverage metrics 230 – `GET /wp-json/mamba-wc/v1/stats` – Detailed performance statistics 231 – `GET /wp-json/mamba-wc/v1/cache-counts` – Cache counts by content type (products, categories, etc.) 232 – `GET /wp-json/mamba-wc/v1/purge-stats` – Purge operation statistics 233 144 234 **Cache Management:** 145 235 146 – `wp mamba purge` – Purge all cache (page cache, Store API, fragments) 147 – `wp mamba purge page` – Purge only page cache 148 – `wp mamba purge api` – Purge only Store API cache 149 – `wp mamba purge url <url>` – Purge specific WooCommerce product/category URL 150 – `wp mamba purge product <id>` – Purge cache for specific product ID 151 – `wp mamba purge category <slug>` – Purge cache for specific category 236 – `POST /wp-json/mamba-wc/v1/purge` – Purge caches (body: `{type: "all|page|api|url", url: "..."}`) 152 237 153 238 **Warmup Operations:** 154 239 155 – `wp mamba warmup` – Start background cache warmup for all catalog pages 156 – `wp mamba warmup products` – Warm up all product pages 157 – `wp mamba warmup categories` – Warm up all category/tag pages 158 – `wp mamba warmup shop` – Warm up main shop page 159 – `wp mamba warmup status` – Check warmup job progress 160 161 **Database Operations:** 162 163 – `wp mamba db optimize` – Run all database cleanup tasks 164 – `wp mamba db optimize sessions` – Clean expired WooCommerce sessions 165 – `wp mamba db optimize orders` – Clean orphaned order data 166 – `wp mamba db optimize products` – Clean orphaned product data 167 – `wp mamba db status` – Show database optimization status 168 169 **Monitoring & Diagnostics:** 170 171 – `wp mamba status` – Display comprehensive cache and performance statistics 172 – `wp mamba status detailed` – Show detailed metrics including hit rates, coverage, and savings 173 – `wp mamba config` – Display current Mamba configuration 174 – `wp mamba test` – Run cache functionality tests 175 176 **Examples:** 177 178 # Purge all cache 179 wp mamba purge 180 181 # Warm up product catalog after bulk import 182 wp mamba warmup products 183 184 # Clean database after order migration 185 wp mamba db optimize orders 186 187 # Check cache performance 188 wp mamba status detailed 189 190 191 ### REST API Endpoints 192 193 Programmatic access to Mamba's WooCommerce caching and optimization features: 194 195 **Status & Monitoring:** 196 197 – `GET /wp-json/mamba/v1/status` – Cache status, hit rates, coverage metrics 198 – `GET /wp-json/mamba/v1/stats` – Detailed performance statistics 199 – `GET /wp-json/mamba/v1/warmup/{job_id}` – Background warmup job status 200 – `GET /wp-json/mamba/v1/db/counts` – Database cleanup task counts 201 202 **Cache Management:** 203 204 – `POST /wp-json/mamba/v1/purge` – Purge all caches 205 – `POST /wp-json/mamba/v1/purge/page` – Purge page cache only 206 – `POST /wp-json/mamba/v1/purge/api` – Purge Store API cache only 207 – `POST /wp-json/mamba/v1/purge/url` – Purge specific URL (body: `{url: "https://example.com/product/test"}`) 208 – `POST /wp-json/mamba/v1/purge/product/{id}` – Purge specific product 209 – `POST /wp-json/mamba/v1/purge/category/{slug}` – Purge specific category 210 211 **Warmup Operations:** 212 213 – `POST /wp-json/mamba/v1/warmup` – Start background warmup 214 – `POST /wp-json/mamba/v1/warmup/products` – Warm up product pages 215 – `POST /wp-json/mamba/v1/warmup/categories` – Warm up category pages 216 – `GET /wp-json/mamba/v1/warmup/jobs` – List active warmup jobs 217 218 **Database Operations:** 219 220 – `POST /wp-json/mamba/v1/db/optimize` – Run database cleanup 221 – `POST /wp-json/mamba/v1/db/optimize/{task}` – Run specific cleanup task 222 – `GET /wp-json/mamba/v1/db/tasks` – List available cleanup tasks 223 – `GET /wp-json/mamba/v1/db/overview` – Database optimization overview 224 225 **Configuration:** 226 227 – `GET /wp-json/mamba/v1/settings` – Get current settings 228 – `POST /wp-json/mamba/v1/settings` – Update settings (requires admin authentication) 229 – `GET /wp-json/mamba/v1/cdn/test` – Test CDN connection 230 – `POST /wp-json/mamba/v1/cdn/purge` – Send CDN purge request 240 – `POST /wp-json/mamba-wc/v1/warmup` – Start foreground warmup 241 – `POST /wp-json/mamba-wc/v1/background-warmup` – Start background warmup job 242 – `GET /wp-json/mamba-wc/v1/warmup-status` – Check warmup job progress 243 – `POST /wp-json/mamba-wc/v1/warmup-cancel` – Cancel running warmup job 244 – `POST /wp-json/mamba-wc/v1/warmup-resume` – Resume paused warmup job 245 – `GET /wp-json/mamba-wc/v1/warmup-errors` – Get warmup error log 246 – `GET /wp-json/mamba-wc/v1/background-jobs` – List active background jobs 231 247 232 248 **Authentication:** 233 249 234 All REST endpoints require WordPress admin authentication . Use standard WordPress authentication methods (cookies, application passwords, or OAuth).250 All REST endpoints require WordPress admin authentication (`manage_options` or `manage_woocommerce` capability). Use standard WordPress authentication methods (cookies, application passwords, or OAuth). 235 251 236 252 … … 241 257 When updating products via API, automatically purge affected cache: 242 258 243 # After updating product via WooCommerce REST API 244 245 curl -X POST https://example.com/wp-json/mamba/v1/purge/product/123 \ 259 `# After updating product via WooCommerce REST API` 260 curl -X POST https://example.com/wp-json/mamba-wc/v1/purge \ 261 -H "Content-Type: application/json" \ 262 -d '{"type":"url","url":"https://example.com/product/my-product/"}' \ 246 263 -u username:password 247 264 … … 251 268 Include cache warmup in deployment pipelines: 252 269 253 # After deployment, warm up critical pages 254 255 wp mamba warmup shop 256 wp mamba warmup categories 257 wp mamba purge # Clear any stale cache 270 `# After deployment, clear stale cache and warm up` 271 wp mamba-cache-for-woocommerce purge all 272 wp mamba-cache-for-woocommerce warmup start 258 273 259 274 … … 262 277 Monitor WooCommerce performance in external systems: 263 278 264 # Check cache hit rates 265 266 wp mamba status | grep "Hit Rate" 279 `# Check warmup status` 280 wp mamba-cache-for-woocommerce warmup status 267 281 268 282 … … 371 385 = Can I customize cache behavior? = 372 386 373 Yes, extensively! Mamba provides 60+ filters for developers to customize TTL, cache keys, invalidation logic, and more. See our [Developer Reference](docs/api-reference.html) for details.387 Yes, extensively! Mamba provides 70+ filters for developers to customize TTL, cache keys, variants, warmup behavior, and more. See our [Developer Reference](docs/api-reference.html) for details. 374 388 375 389 = What happens if I deactivate Mamba? =
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](https://plugins.trac.wordpress.org/chrome/site/your_project_logo.png)