LiteSpeed Cache + Password Protected




Wordpress LScache Plugin: LiteSpeed Cache + Password Protected

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi there, In order to Password Protected to work correctly with LiteSpeed Cache , until now, the cookie should be excluded: v3.4.2: Cache -> Excludes -> Do Not Cache Cookies -> bid_1_password_protected_auth But from now, this is not enough to take into consideration to make things work. Seems that LiteSpeed Cache 3.4.2 plugin, by default, makes the Password Protected 2.3 plugin to behave weirdly when both are being active in the same WP site (5.5.1). This behaviour has been reported here: https://github.com/benhuson/password-protected/issues/169 And a code for the functions.php file has been provided. My question is if there is an option that we can tweak in LiteSpeed settings to avoid addition code in functions.php? Many thanksHi, hmmmm , if you dont like to edit functions.php , like worry about themes future update , you can try use child theme but exclude the cookie doesnt work ? Best regards, @CacheCrawler many thanks for your answer. As I cant edit my first post, I need to correct myself. I have tested the code provided in a TwentyTwenty functions.php child theme and IT DOES NOT WORK. So theres a conflict between these two plugins explained here: https://github.com/benhuson/password-protected/issues/172 Please, let us know how we need to configure LiteSpeed in order the plugin Password Protected to behave correctly. It is the only plugin that allows protecting a full WordPress site. Many thanks! It seems that adding these values in LiteSpeed Cache config solves the issue: 1. v3.4.2: Cache -> Excludes -> Do Not Cache Cookies -> bid_1_password_protected_auth 2. v3.4.2: Cache -> Excludes -> Do Not Cache Query Strings -> password-protected Thank you!



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



Reference