Wordpress LScache Plugin: Do NOT cache home page for logged-in users
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, As the topic title suggests, how can I avoid caching of the home page for logged-in users only? Thanks in advance. Hi, You mean you only want to no-cache the home page , but still caches all other pages for login user ? but does home page needs to be cached for guest user or not ? Best regards, Hey @CacheCrawler, Yes, thats correct. I want the home page to be cached publicly for guests. But I do NOT want the home page to be cached at all (public or private) for logged-in users. Thanks in advance. Hi, Please try add this code into top of your themes functions.php if ( is_user_logged_in() && trim($_SERVER[REQUEST_URI])==/ ) define(LSCACHE_NO_CACHE, true) then do a purge all , and check it out. Best regards, Great! Thanks, @CacheCrawler!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference