Skip to content
Traslatability traslatability

NimbleCache Documentation

Serve your pages before WordPress even loads — and never touch a setting to do it.

For developers


// Refuse to cache a page, with a reason that shows in Diagnostics.
add_filter( 'trnc_bypass', function ( $reason ) {
    return is_page( 'live-scores' ) ? 'live-data' : $reason;
} );

// Purge something of your own.
do_action( 'trnc_purge_url', 'https://example.com/prices/' );
do_action( 'trnc_purge_post', $post_id );
do_action( 'trnc_purge_all' );

// Add pages to purge when a post changes.
add_filter( 'trnc_purge_urls_for_post', function ( $urls, $post_id ) {
    $urls[] = home_url( '/latest/' );
    return $urls;
}, 10, 2 );

// A cookie that should split the cache — a currency switcher, say.
add_filter( 'trnc_variant_cookies', function ( $cookies ) {
    $cookies[] = 'my_currency';
    return $cookies;
} );

DONOTCACHEPAGE is honoured, so anything already using that convention works without changes.

Still stuck? We answer support email from real people.

Browse the knowledge base

Get NimbleCache

One licence, every feature. Updates and support included.

See pricing