WPSlash

Disable REST API Caching when using WooFood

Wednesday April 29, 2020

WooFood Automatic Printing software using WordPress REST API to fetch orders.

If you using a caching plugin you must be sure that you have excluding caching on REST API. With other words, you should exclude URLs including wp-json , because caching REST API orders will make AutoPrint software getting the same data until the cache expires.

This may make the AutoPrint software print the same order over and over…

Here are some sample instructions on how to disable REST API Caching on.

Disable Rest API Caching on Litespeed

disable rest api caching screenshot
  1. Navigate to Litespeed > Cache
  2. Be sure that Cache REST API is OFF
  3. Save Settings and you are ready to go!

Disable REST API Caching on Cloudflare

disable rest api caching cloud flare screenshot wordpress
  1. Navigate to Page Rules
  2. In the section If the url matches type this url https://www.example.com/wp-json/woofood/* by replacing example.com with your actual domain name
  3. Set Cache Level to Bypass
  4. Set Browser Integrity Check to Bypass
  5. Press Save and Deploy and you are ready!

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials

How to Speed Up Your WooCommerce Restaurant Site for Core Web Vitals and Faster Checkout

A slow <a href="https://www.wpslash.com/how-to-set-up-abandoned-cart-recovery-for-your-woocommerce-restaurant-website-2025/" title="How to Set Up Abandoned Cart Recovery for Your WooCommerce Restaurant Website (2026)”>restaurant website is worse than a slow kitchen. When someone opens your menu at 7:42 PM on a Friday, they’re hungry, distracted, and one tap away from ordering from a competitor. If your Largest Contentful Paint takes four seconds […]
July 14, 2026
Tutorials

How to Add SMS Order Notifications to Your WooCommerce Restaurant (Twilio, Plivo & Local Gateways)

Your kitchen just accepted an order. The customer is refreshing their email inbox, wondering if anything happened. Twenty minutes later, they call the restaurant asking about their food, right as your team is plating it. Sound familiar? This is the exact friction that SMS order notifications eliminate — and in 2026, they’re no longer optional […]
July 13, 2026
Tutorials

How to Add an AI Chatbot to Your WooCommerce Restaurant for Automated Order Taking & FAQs

Picture this: it’s Friday at 7:42 PM. Your pizzeria’s phone is ringing off the hook, three customers are asking about gluten-free crust on your website chat, and two more just abandoned checkout because they couldn’t figure out if you deliver to their postcode. Meanwhile, your kitchen is drowning. This is the exact scenario an AI […]
July 13, 2026
×

🔥 ONE DAY ONLY OFFER 🔥

Upgrade FoodMaster Today

Normally your license is limited to 1 Website.

Today only, get a LIFETIME Unlimited Websites License for just:
$499

✔ Unlimited Client Websites
✔ Unlimited Personal Projects
✔ Future Updates Included
✔ Save Hundreds on Additional Licenses

Offer Ends In: