• Resolved Erik Bernskiold

    (@erik-bernskiold)


    Hi,

    A client reported an issue with a password protected page where you couldn’t 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    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,

    Thread Starter Erik Bernskiold

    (@erik-bernskiold)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How are password protected pages handled?’ is closed to new replies.