• Resolved Carsten Lund

    (@carsten-lund)


    Hi there, I just purchased a LiteSpeed plugin licence through WHM/cPanel, and my server has been setup for Memcached by WHM/cPanel support, and the Object Cache Memcached Extension is Enabled.

    The purpose for adding a LiteSpeed server to my site is to be able to object cache the highly dynamic content of my BuddyPress members page.

    But when the cache is enabled, all the dynamic content are page cached as well, and profile pages are not updated.

    Does the Exclude Settings work with Object Cache, should I still exclude urls with dynamic content with Object Cache active?

    How do I take advantage of object caching for my buddyPress content, and which settings should I use?

    Do you have any documentation on this?

    Thanks!

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    LSCWP’s object cache is just following standard wordpress API

    It depends on other plugins if they want to add their datas into the cahce

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi there, thanks for your reply, in this case BuddyPress which should support object caching

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    well , basically , for any PHP code that uses wp_cache_add() , wp_cache_set() , wp_cache_get() …etc

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    The problem is, that every thing is set up, the server is set up, and the Object Cache is marked as on in the dashboard, but there are no object cache in the log

    Plugin Support qtwrk

    (@qtwrk)

    what log ?

    you should check from status on redis or memcached

    Thread Starter Carsten Lund

    (@carsten-lund)

    wp-content debug.log

    Thread Starter Carsten Lund

    (@carsten-lund)

    Memcached Extension: Enabled

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no , object cache won’t log into there , please check it by memcached stats or redis info

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi, thanks for the information, Where do I find memcached stats?

    I just followed the info here, how to verify:

    There are not too many methods to check the Object Cache log, but if you set LiteSpeed Cache > Toolbox > Debug Settings > Debug Log to ON or Admin IP, and view your page source code, you should see something like this at the bottom of the code:

    <!– Object Cache [total] 5190 [hit_incall] 5056 [hit] 6 [miss_incall] 21 [miss]…

    https://docs.litespeedtech.com/lscache/lscwp/admin/#memcached-lsmcd-and-redis-object-cache-support-in-lscwp

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Does it shows connection test passed ?

    please screenshot me your object cache page

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Yes it does

    View post on imgur.com

    What about other cache settings with object cache activated, the page cache should be activated for object cache to work.

    But with cache enabled, my dynamic content are also cached which causes issues for members profile updates.

    But if I exclude /members/ form being cached, they are not cached at all. should those pages then be object cached?

    Thanks

    • This reply was modified 3 years, 10 months ago by Carsten Lund.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no , page cache and object cache are 2 different things, and they are INDEPENDENT from each other.

    yes, you should exclude the buddypress pages from being cached by LiteSpeed Cache.

    you can enable the debug log to ALL , then check the HTML source code , at bottom of the page, it should state the object cache status

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Yes, I know they are two different things, but you have to have the general cache enabled to use object cache, that’s what I meant.

    So what happens when I exclude the buddypress pages form being cached?

    Then in theory they should be object cached?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes , if you exclude it from page cache, the object cache will still try to cache it if it is instructed to

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hmmm, then I should see significant speed improvements which I don’t. I have to contact WHM cPanel support to secure that the Memcached LSCMCD extention is properly installed, but on the other hand, if it says it is in the object cache page, I guess it should be.

    Sorry I don’t understand this
    ‘you can enable the debug log to ALL , then check the HTML source code , at bottom of the page, it should state the object cache status’

    I can’t see any ALL setting in debug log, but it is set to On, not Admin IP only.

    But i don’t see anything in the bottom of my pages in the browser.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Caching dynamic content with Object Cache’ is closed to new replies.