How are password protected pages handled?




Wordpress LScache Plugin: How are password protected pages handled?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, A client reported an issue with a password protected page where you couldnt login. Clearing the cache fixed this issue. Looking into how LS Cache works with password protected pages I find some posts recommending a special rewrite rule, other posts saying it should work fine out of the box. Just wanted to get some clarification on how the LS Cache plugin handled protected pages. Many thanks, Erik Hi, I just looked at the code , as of right now. if ( ! empty($post->post_password) ) if ( isset($_COOKIE[wp-postpass_ . COOKIEHASH]) ) Debug2::debug( [Vary] finalize bypassed due to password protected vary ) // If user has password cookie, do not cache Control::set_nocache(password protected vary) return it should handle by itself already Best regards, Thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference