• Resolved TZAL

    (@tzemaitis)


    Hi

    We we’ve been using Strong Testimonials plugin https://ww.wp.xz.cn/plugins/strong-testimonials/ for some time along with the Litespeed Cache plugin and no problems until recently.

    All testimonials are set to random: single rotating testimonials on pages, sidebar widget and a testimonials page.

    Everything has worked well for ages until recently. Although the testimonials rotate, they now always start on the same testimonial and progress in the same order (different for each type of use except testimonials page) i.e. no longer random where each would start with a different entry & then rotate randomly

    This isn’t the case when logged into WP and eventually tracked it down to the Litespeed Cache plugin – when disabled, all works OK. No idea what’s changed in either plugin to stop the randomness?

    Can you suggest settings to change in Litespeed Cache or what to exclude?

    Many thanks

    Tony

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @tzemaitis, if the content is randomly generated by PHP code, it will not change if the pages get cached. Do you know is it possible to make the random rendering on frontend?

    Thread Starter TZAL

    (@tzemaitis)

    Hi @stanleylitespeed
    Sorry, no idea.
    All I know is that it used to show the randomly generated changes with Litespeed Cache.
    No idea what might have changed with either plugin?

    Hi @tzemaitis, after testing the plugin, you may try to use [esi testimonial_view id="1" ttl="0"] to make the testimonial as a non-cached widget, or you can set the TTL larger to have a better performance. (TTL means the time this widget reload a new cache)

    Thread Starter TZAL

    (@tzemaitis)

    Hi @stanleylitespeed

    I tried using [testimonial_view id=”2″ ttl=”0″] (single page) but that didn’t make any difference.

    Also, cannot find TTL settings in Litespeed Cache or Strong Testimonial settings.

    Hi @tzemaitis, please check have you turned ON Litespeed Cache Setting > ESI > Enable ESI and try to purge the cache.

    Also, remember to put esi at the start of shortcode like: [esi testimonial_view id=”2″ ttl=”0″].

    The ttl is referring to [esi testimonial_view id=”2″ ttl=”0″] (the inline ttl number).

    Thread Starter TZAL

    (@tzemaitis)

    Hi stanley@litespeed

    Thanks, that made it clearer but I’m not sure if I’ve understood all as it didn’t work.

    I turned ON Litespeed Cache Setting > ESI > Enable ESI and then purged ALL.

    Tried inserting [esi testimonial_view id=”2″ ttl=”0″]

    Saved, purged & tested in incognito but got error “Testimonial view ”2″ not found”

    Am I meant to replace “0” with something?

    Hi @tzemaitis, I still cannot see the ESI on your page, could you please join our Slack channel to discuss?

    Thread Starter TZAL

    (@tzemaitis)

    Hi stanley@litespeed

    Enable ESI is definitely on.

    Apologies but never seen slack channel before.

    How do I join your slack channel?

    Thread Starter TZAL

    (@tzemaitis)

    Hi stanley@litespeed

    Thanks, joined.

    You could find me on Direct Message (+) with my name Stanley Cheung at LiteSpeed

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Cache Settings’ is closed to new replies.