• Resolved Nixiknw

    (@nixiknw)


    Hello
    on our website (wordpress / divi) we want to display current content (e.g. date / time) in various places.
    If this page has been cached, the time displayed on the now static page will of course no longer change.

    Is it possible to keep the corresponding div-container with this function out of the cache, for example via the css-id or using shortcode?

    Many thanks for your help

    Uwe

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Emre Vona

    (@emrevona)

    do you want to exclude a part of a page?

    Thread Starter Nixiknw

    (@nixiknw)

    yes

    Plugin Author Emre Vona

    (@emrevona)

    when a page is cached, the page is saved as a static html file, so you cannot exclude a part of a page. you should load the data via Ajax instead of PHP.

    Hi Uwe,

    Happy to help you. Our website also uses WP Fastest Cache and has a couple of pages where we also need to bypass the caching of certain page elements. You can solve your issue two different ways (as we did):

    1. Hire a JS/PHP developer at upwork[dot]com.
      and/or
    2. Use the plugin, Content No Cache. (Useful Tip: Create a shortcode via filter or code snippet for generating your date/time, then use the shortcode as explained in the plugin’s Details section).

    The above should work for you too!

    Best wishes ??

    Thread Starter Nixiknw

    (@nixiknw)

    Hello
    Thank you very much for your answers. I will have a look at the plugin when I get the time.
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.