• Resolved taogmbh

    (@taogmbh)


    It seems that, by default, Cachify also caches pages containing nonces, which breaks them (or, at the very least, renders them useless). Logged in users seem to bypass the cache and are exempt, but nonces should work for anonymous users, too. Is there a way to exclude pages from caching some way, so we can blacklist nonce-requiring ones?

    https://wordpress.org/plugins/cachify/

Viewing 1 replies (of 1 total)
  • Anonymous User 7658014

    (@anonymized_7658014)

    You can add a comma-separated list of pos/page IDs to Settings → Cachify → Cache exceptions, or exclude pages programmatically with as demonstrated in this Gist:

    add_filter(
        'cachify_skip_cache',
        function() {
        	return (
        	    in_category( 'fruit' ) ? true : false
        	);
        }
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Cachify and Nonces’ is closed to new replies.