Clanbite Forums General

apply_filters( 'clanbite_forums_statistics_cache_ttl', int $ttl )

Filters how long (seconds) the aggregate statistics are cached. count_users() scans usermeta, so this is not free on large sites.

Filter PHP

Parameters

$ttl (int)

Seconds to cache the snapshot; return 0 to disable caching. Default 300.

Example

add_filter( 'clanbite_forums_statistics_cache_ttl', function ( $ttl ) {
	// Change $ttl here.
	return $ttl;
}, 10, 1 );

Defined in inc/functions.php