Plugin Support
qtwrk
(@qtwrk)
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!
Plugin Support
qtwrk
(@qtwrk)
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!
Plugin Support
qtwrk
(@qtwrk)
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.
-
This reply was modified 6 years ago by
ArtGoddess.
Plugin Support
qtwrk
(@qtwrk)
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, don’t 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!
Plugin Support
qtwrk
(@qtwrk)
Hi,
This is the issue
[Core] CHK html bypass: miss footer const
that plugin didn’t call WP footer , so LSCWP consider it as incomplete page thus bypass the optimizaiton to avoid any possible issue.
Best regards,
Great @qtwrk!
Yes, you are right.
I have checked the code, and the plugin https://ww.wp.xz.cn/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!
-
This reply was modified 6 years ago by
ArtGoddess.
Plugin Support
qtwrk
(@qtwrk)
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.