Hi, hilmanfajrian.
I’m sorry you’re having difficulty.
Have you tried it with Cache Login Page set to OFF?
I’m not sure if you’re going to find the answer in the plugin, if you had the problem before you installed it. If my above suggestion doesn’t work, it would be great if you could create a ticket (or send email to bug@litespeedtech.com) so we can troubleshoot at the server level, if necessary. Thanks!
Hi Lisa,
Thanks for caring.
Login loop problem is now resolved. Here is my setting:
– General > Enable Litespeed Cache: DISABLE
– Cache > Cache Logged-in users: OFF
– Cache > Browser Cache: OFF
– Exclude > Do not Cache Roles: Instructor, Student
That’s all setting related to cache. I leave optimization setting to default.
Oh, please disregard my previous response. I misunderstood what you were saying.
The reason it works now is because you completely turned off the cache.
If you still want your pages to be cached, then you need to set General > Enable LiteSpeed Cache to Enable.
That will probably re-introduce the issue. Did you try what I suggested earlier? Set Cache > Cache Login Page to OFF and let me know what happens.
Yes. Login loop is fixed because of this setting:
General > Enable LiteSpeed Cache > Disable
I think that setting is sending command to my Litespeed hosting server that caching by default not to cache my website. Is that right?
I won’t enable it because it creates the login loop on my website.
Yes, I did Cache > Cache Login Page > Off. But it didn’t work because (I think) the ‘Enable LiteSpeed Cache’ was Enable.
Here is my last httaccess that works.
# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* – [E=Cache-Control:no-autoflush]
RewriteRule min/\w+\.(css|js) – [E=cache-control:no-vary]
</IfModule>
## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If you do not want to cache your site at all, then yes. You can solve your problem by setting General > Enable LiteSpeed Cache to Disable.
If you are happy with that, we can mark this resolved.
If you do want to cache your site, and you’d like to figure out why that login page is acting the way it does, please let us know, and we’ll try to help.
Hello,
I have the same issue after update from Version 1.4 to Version 1.6.3.
The users where login need to change page to show the correct page content. Otherwise they seem that they are not logged in
note: We redirect the user in the last page where was before logged in. So we haven’t a page to exclude from caching for users that just logged in.
Thank you.
-
This reply was modified 8 years, 4 months ago by
arisgast.
Hi, Lisa.
Thanks for offering a help. I’d love to.
Disabling the cache is raising my load speed. If you can help me to find a way out to prevent login loop and cache my site with Litespeed plugin, please tell me how make it happens.
Thank you.
@hilmanfajrian and @arisgast
Can you both share your environment report? Maybe we’ll find that you have some settings or other plugins in common that can point us in the right direction.
Go to LiteSpeed Cache > Environment Report, and copy the contents of the report here.
Thanks!
Hello Lisa,
i cant share my Environment Report in public but I have a open ticket (#820789)
I will attached my report there if you want.
Thank you.
Thanks.
We’ll continue discussing your issue on the ticket then 🙂
Server Variables
SERVER_SOFTWARE = LiteSpeed
DOCUMENT_ROOT = /var/www/vhosts/arkademi.com/httpdocs
X-LSCACHE = 1
LSWCP_TAG_PREFIX = 3b0
LSCache Plugin Options
version = 1.6.3
radio_select = 0
purge_upgrade = true
cache_priv = false
cache_commenter = true
cache_rest = true
cache_page_login = true
timed_urls =
timed_urls_time =
cache_favicon = true
cache_resources = true
mobileview_enabled = false
mobileview_rules =
cache_uri_priv =
cache_browser = false
cache_browser_ttl = 2592000
login_cookie =
check_advancedcache = true
debug = 0
admin_ips = 127.0.0.1
debug_level = false
log_file_size = 30
heartbeat = true
debug_cookie = false
collaps_qs = false
log_filters = false
log_ignore_filters = gettext
gettext_with_context
get_the_terms
get_term
log_ignore_part_filters = i18n
locale
settings
option
public_ttl = 604800
private_ttl = 1800
front_page_ttl = 604800
feed_ttl = 0
403_ttl = 3600
404_ttl = 3600
500_ttl = 3600
purge_by_post = A.F.H.M.PGS.PGSRP.PT.T
excludes_uri =
excludes_qs =
excludes_cat =
excludes_tag =
css_minify = false
css_combine = false
css_combined_priority = false
css_http2 = false
css_exclude =
js_minify = false
js_combine = false
js_combined_priority = false
js_http2 = false
js_exclude =
optimize_ttl = 604800
html_minify = false
optm_qs_rm = false
optm_ggfonts_rm = false
optm_css_async = false
optm_js_defer = false
optm_emoji_rm = false
optm_excludes =
optm_exclude_jquery = true
optm_ggfonts_async = false
cdn = false
cdn_ori =
cdn_url =
cdn_inc_img = false
cdn_inc_css = false
cdn_inc_js = false
cdn_filetype = .aac
.css
.eot
.gif
.jpeg
.js
.jpg
.less
.mp3
.mp4
.ogg
.otf
.pdf
.png
.svg
.ttf
.woff
cdn_exclude =
cdn_remote_jquery = 0
media_img_lazy = false
media_img_lazy_placeholder =
media_iframe_lazy = false
media_img_optm_cron_off = false
media_img_webp = false
media_img_webp_only = false
hash = pAq1SHQbXGq8HQPWLLAZj4vZA1AkQAkU
nocache_cookies =
nocache_useragents =
crawler_include_posts = true
crawler_include_pages = true
crawler_include_cats = true
crawler_include_tags = true
crawler_excludes_cpt =
crawler_order_links = date_desc
crawler_usleep = 500
crawler_run_duration = 400
crawler_run_interval = 600
crawler_crawl_interval = 302400
crawler_threads = 3
crawler_load_limit = 1
crawler_domain_ip =
crawler_custom_sitemap =
crawler_cron_active = false
esi_enabled = false
esi_cached_admbar = true
esi_cached_commform = true
Wordpress Specific Extras
wordpress version = 4.9
locale = en_US
active theme = WPLMS
active plugins = array (
0 => ‘LayerSlider/layerslider.php’,
1 => ‘all-in-one-seo-pack/all_in_one_seo_pack.php’,
2 => ‘bbpress/bbpress.php’,
3 => ‘bp-social-connect/bp_social_connect.php’,
4 => ‘buddypress/bp-loader.php’,
5 => ‘co-authors-plus/co-authors-plus.php’,
6 => ‘dk-pricr-responsive-pricing-table/rpt.php’,
7 => ‘drop-shadow-boxes/dropshadowboxes.php’,
8 => ‘duplicate-page/duplicatepage.php’,
9 => ‘js_composer/js_composer.php’,
10 => ‘litespeed-cache/litespeed-cache.php’,
11 => ‘loco-translate/loco.php’,
12 => ‘tablepress/tablepress.php’,
13 => ‘vibe-course-module/loader.php’,
14 => ‘vibe-customtypes/vibe-customtypes.php’,
15 => ‘vibe-shortcodes/vibe-shortcodes.php’,
16 => ‘wp-mail-smtp/wp_mail_smtp.php’,
17 => ‘wp-quiz/wp-quiz.php’,
18 => ‘wp-smushit/wp-smush.php’,
19 => ‘wplms-coauthors-plus/wplms-coauthor-plus.php’,
20 => ‘wplms-customizer/wplms-customizer.php’,
21 => ‘wplms-dashboard/wplms-dashboard.php’,
22 => ‘wplms-front-end/wplms-front-end.php’,
)
/var/www/vhosts/arkademi.com/httpdocs/.htaccess contents:
# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* – [E=Cache-Control:no-autoflush]
RewriteRule min/\w+\.(css|js) – [E=cache-control:no-vary]
</IfModule>
## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thank you! I’ll compare these two and see if anything stands out.
I have been trying to figure out a very similar problem with my home page. It has a login box that is changed to a “Welcome” message after the user logs in. I have managed to get it to work by changing 2 settings on the Cache tab. First, I set Cache Login Page to Off. Second, under Private Cached URIs I enter a single line of “/$”. This unfortunately means my home page isn’t publicly cached, but it seems like this combination works most consistently.
Hello,
Update to v1.6.4 didn’t resolve my issue.
Regards