Home / Widgets / Cache Time | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Cache Time | Display Eventbrite Events

The free version has a cache time of 24 hours, for most uses this is fine as events are not normally added quickly, except during initial setup. The pro version does have Cache settings however if you are unable to use the Pro version you can change the cache time time is the free version via this filter.

filter: (‘wfea_eventbrite_cache_expiry‘ , $seconds)

(Note this code snippet applies for "Display Eventbrite Events Plugin" available here: https://fullworksplugins.com/products/widget-for-eventbrite/ )

Code Preview
php
<?php
add_filter( 'wfea_eventbrite_cache_expiry', function ( $seconds ) {
	return 3 * HOUR_IN_SECONDS;
}, 10, 1 );

Comments

Add a Comment