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

WooFood

How to Disable Coupons for Delivery Orders in WooCommerce

If you’re running a WooCommerce-powered restaurant or food delivery service, you might want to restrict certain coupon codes for delivery orders while keeping them valid for pickup orders. This ensures better control over discounts, prevents misuse, and improves your store’s pricing strategy. Why Restrict Coupons for Delivery Orders? Offering coupons is a great way to attract customers, but in food […]
June 20, 2023
WooFood

How to Automatically Re-Enable Disabled Products in WooFood Once a Day

If you’re running a WooCommerce-powered restaurant ordering system using WooFood, you might have products that automatically get disabled due to stock limits or availability settings. To ensure a smooth customer experience, you can automate the re-enabling process using a scheduled WordPress cron job. This method allows you to reset all product availability once a day, ensuring your menu stays active without manual intervention. Why […]
March 8, 2023
WooFood

How to Add Live Product Search to WooFood in WooCommerce

Enhancing the user experience of your WooCommerce-powered restaurant ordering system is crucial, and adding a live product search feature can significantly improve navigation. This feature allows customers to quickly find food items in your WooFood-powered menu without manually browsing through categories. In this article, we’ll show you how to integrate a live product search above the accordion menu in WooFood using a simple jQuery script and PHP snippet. […]
December 29, 2022