shopp_collection_cache_expire

filters the expiration interval for the product collection wp_cache.

add_filter( 'shopp_collection_cache_expire', [callback] )

@param int $ttl seconds to expiration of wp_cache for a product collection

Description

filters the expiration interval for the product collection wp_cache.

The default expiration is 43200, or 12 days.

Example

// register filter callback
add_filter('shopp_collection_cache_expire', 'shopp_collection_cache_expiration_filter');

// create filter function
function shopp_collection_cache_expiration_filter( $ttl ) {
    // set collection cache to 8 hours
    return 28800;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar