manifest / performance / cached-community
Cached Community - DEV
Dev inc file
by PALASTHOTEL by Edward · github.com/palasthotel/cached-community
★ 0stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/palasthotel/cached-community/archive/refs/heads/master.zipCached Community
This WordPress plugin tries to use varnish like cache technologies while users are logged in.
You have to setup your caching layer so that it does not skip cache on default wordpres cookies but recognizes the special login cookie and then skips the cache.
Cookie Name
You can find the default cookie name in classes/SpecialCookies::DEFAULT_COOKIE_NAME or you can overwrite the cookie name via filter.
if(function_exists('cached_community_plugin')){
function my_cookie_name($cookie_name){
return "my_own_cookie_name";
}
add_filter(cached_community_plugin()::FILTER_COOKIE_NAME, 'my_cookie_name');
}
No Cache
Some urls should never be cached for example a user account page.