WPSlash

Disable default WooFood Accordion Caching

Tuesday July 28, 2020

The following code snippet will disable the default caching with transient of WooFood accordion shortcode

add_filter('woofood_accordion_transient', 'wpslash_woofood_disable_transient');
function wpslash_woofood_disable_transient($default)
{
	return null;
}

Leave a Comment

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

Related Articles

Tutorials

How to Build an Email Marketing Funnel for Your Restaurant: Automated Campaigns, Order Follow-Ups, and Promotional Emails with WooCommerce and Mailchimp (Complete Guide)

Why Email Marketing Is Essential for Restaurant Websites (and How It Differs from Other Industries) Every time a customer orders through DoorDash, Uber Eats, or Grubhub, you’re renting access to your own audience. The third-party platform owns the customer relationship, controls the data, and charges you anywhere from 15% to 30% per order for the […]
March 31, 2026
Tutorials

How to Speed Up Your WooCommerce Restaurant Ordering Site for Peak Hours: Complete Performance Optimization Guide (Caching, Database Tuning, and CDN Setup)

Why Restaurant Ordering Sites Crash During Peak Hours (And What Makes Them Different from Regular WooCommerce Stores) It’s 6:47 PM on a Friday. Your restaurant’s online ordering system just got shared on a local Facebook group, and suddenly 200 people are trying to place dinner orders at the same time. The site slows to a […]
March 30, 2026
Tutorials

How to Configure Allergen Disclosures, Tax Rules, and ADA Accessibility Compliance for Your WooCommerce Restaurant Ordering Website (Complete Legal Compliance Guide)

Why Legal Compliance Matters for Online Restaurant Ordering Sites Running a restaurant website isn’t just about beautiful food photos and a smooth checkout. The moment you accept orders online, you step into a regulatory landscape that spans food safety law, tax code, disability rights, and data privacy — often simultaneously. And the consequences of getting […]
March 30, 2026