Wordpress LScache Plugin: Speed optimize password-protected page
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello! Im using LiteSpeed Cache plugin with this plugin: https://wordpress.org/plugins/password-protected/ Everything is working fine, using this setting: LiteSpeed Cache Settings -> Cache -> [4] Excludes -> Do Not Cache Cookies -> bid_1_password_protected_auth (v3.2.1) But Im wondering why the password-protected page is not being optimized as the rest of the site. How can this be done? Many thanks for your help! This topic was modified 2 years, 5 months ago by ArtGoddess. Hi, You will need to check the debug log why that specific page is not being optimized. Best regards, Report number: RMNQKVKY Report date: 06/03/2020 21:21:48 Many thanks! Hi, Could you please resend the report with note , to express which page is password protected and how to reproduce the issue ? Best regards, Report number: HSOBPKWX Report date: 06/04/2020 17:32:40 Many thanks! Hi, From report , it seems you have exclude administrator from being optimized , and when I check the page with guest user, it does get optimized. Best regards, As far as I can see, if you check the homepage, and DO NOT ENTER the password, the password-protected page is NOT optimized. Hi, Could you please go to admin area , left-side bar ?> LiteSpeed Cache ?> Toolbox ?> [6] Debug Settings in this page: set Debug Log to Admin IP Only add your IP into Admin IPs (you will see your IP below.) set Debug Level to Advanced save changes. Now go to [7] Log View, click on admin-bar LiteSpeed Cache ?> Purge All then click button [D] Clear Log , keep this window open, dont close it nor navigate away from it. Now ,open a new window, access your home page , and it will redirect you to password enter page. once page is loaded , go back to Log View window and refresh this page, you should see the debug log is showing up. Then please copy all the text , paste it into https://paste.ubuntu.com/ then post the link it generated for you. Best regards, https://paste.ubuntu.com/p/5WcgX8tbXc/ Report number: XWGCGILE Report date: 06/05/2020 19:55:37 Thank you! Hi, This is the issue [Core] CHK html bypass: miss footer const that plugin didnt call WP footer , so LSCWP consider it as incomplete page thus bypass the optimizaiton to avoid any possible issue. Best regards, Great @CacheCrawler! Yes, you are right. I have checked the code, and the plugin https://wordpress.org/plugins/password-protected/ does not output the general wp_footer but login_footer instead. In fact, I have temporarily tested wp_footer and LiteSpeed works. So, can you please let me know which is the function I have to call from my child theme functions.php in order to make Litespeed work in the password-protected page? I want to maintain the default plugin behaviour and have a different footer in the password-protected page. function my_password_protected_footer() // Call to LITESPEED FUNCTION add_action(login_footer, my_password_protected_footer) Many thanks for your assistance! Hi, Try use define( LITESPEED_IS_HTML, true ) It should force LSCWP to optimize the page Best regards, Perfect! It works like a charm! Thank you very much for your assistance. Marking thread as solved.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference