• Resolved dallass

    (@dallass)


    Hello,

    I have activated the ESI for the widgets and it is working OK.
    However, I do not want to cache the logged-in users, so I tuned this OFF.
    But, the logged in users are cached.
    If I turn OFF ESI, the logged in users are not cached.

    So, question:
    – is it a normal behavior that if ESI it is on the logged-in users are cached (regardless if the fact that the option it is OFF).

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @dallass, you are right that currently if you turn ON ESI with Cache Logged-in Users OFF, you still get cache HIT. I’m checking on this issue and will update you later.

    Thread Starter dallass

    (@dallass)

    Hi Stanley,

    The problem goes a bit further.

    I have a multisite:
    1. main site, is getting 80% traffic from mobiles;
    2. second site, is getting 80% traffic from mobile;
    3. third site – I do not want cache.

    As I get most of the traffic of the mobile, I have to enable the mobile cache.
    To enable mobile cache, I have to enabled LiteSpeed, network wide.
    On the site 1 and 2 it is OK.

    But, the 3rd site is also getting cache, although Lite Speed it is set on Disable.
    Even if I exclude the roles, it is still being getting cached.

    If I disable the plugin network wide, and enable it site by site, I do not get the mobile cache.

    Is this also normal ?

    • This reply was modified 5 years, 1 month ago by dallass.

    Please check on your Network Admin > LiteSpeed Cache setting, you can set Network Enable Cache, Use Primary Site Configuration to OFF for separating the cache setting on each site.

    Thread Starter dallass

    (@dallass)

    Use Primary Site Configuration it is OFF and it is still caching.
    But, it is still caching the subsites (I use subdomains).

    Also, the ESI it is still a problem.

    I don’t know if this 2 are connected.

    Thread Starter dallass

    (@dallass)

    Good morning,

    Sorry to insist, but this is really a big problem for me.
    Can I please have a solution for both problem:
    – ESI error;
    – Caching all the sites in the network as the primary site.

    stanley@litespeed

    (@stanleylitespeed)

    Hi @dallass, sorry for the late reply that I’m on last week. We are working on the issue now and will get you back soon.

    stanley@litespeed

    (@stanleylitespeed)

    Hi @dallass sorry for the delay, please try the following solution:

    1) ESI error
    – After turning ON ESI, Cache Logged-in Users is no-longer useful. Please check the roles you wish to exclude from cache on Settings > Excludes > Do Not Cache Roles instead.

    2) Caching all the sites in the network as the primary site.
    – Could you try these settings:
    Network
    Network Enable Cache [ON]
    Use Primary Site Configuration [OFF]
    Cache Mobile [ON]

    Subsite with cache
    Enable LiteSpeed Cache [Enable]

    Subsite without cache
    Enable LiteSpeed Cache [Disable]

    This should be able to separate the mobile cache when the cache is activated.

    Thread Starter dallass

    (@dallass)

    Hi Stanley,

    It does not make sense to discuss about ESI when the basic cache does not work.
    So, regarding point 2, I have testde this again today (although I did it also before) and it is not working. It is caching everything.

    So, I need:
    – mobile cache
    – main site cached
    – subsite 1 cached
    – subsite 2 not cached.

    This is quite basic I think, but it is not working.

    In other words, the plugin doesn’t work for multisite, if this is not possible.

    stanley@litespeed

    (@stanleylitespeed)

    Could you please join our Slack channel and find me(Stanley Cheung at Litespeed) or submit a ticket here for helping us to reproduce the bug, thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘ESI error’ is closed to new replies.