• Resolved deemodesign

    (@deemodesign)


    Hi All,

    This is something of a general query.

    On one of oursites we use the plugin zportals which pushes and pulls information from a Zoho CRM system that is linked to the user.

    As this content is continually updating we have currently excluded all pages where the portal is published from the cache.

    Is there a way that we can exclude just the plugin itself, so that at least the design elements that do not originate in the plugin are cache’d or even better is there a way we can just ensure the information being pushed and pulled via the Zoho API is never cached so that the logged in users always see an accurate reflection of the data in Zoho

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

    (@qtwrk)

    by default the cache is per-page-basis , by that saying, one single page, is the minimal unit, or element , that is being cached

    technically , yes, it’s possible , but this will require certain custom code to integrate the ESI , use ESI block to display this part of information

    ref: https://docs.litespeedtech.com/lscache/lscwp/api/#generate-esi-block-url

    Thread Starter deemodesign

    (@deemodesign)

    A colleague who has more experience in this area than I did suggest that as the component is added to the page in elementor using the shortcode widget we could add some tags to make it an esi block and prevent caching or give a very short cache time.

    He wasn’t 100% confident though.

    Plugin Support qtwrk

    (@qtwrk)

    if the content is displayed as shortcode , then you can try the ESI shortcode

    e.g change from [your_shortcode] to [esi your_shortcode ttl="0"]

    Thread Starter deemodesign

    (@deemodesign)

    I did try that but something happens that just breaks the shortcode – i will raise it with Elementor support – I doubt I am the first person to have this query.

    Plugin Support qtwrk

    (@qtwrk)

    if your shortcode has multi part , it may not work with ESI

    or the content of shortocode , in some case it just doesn’t work.

    generally speaking , for such frequently updated content , you can consider

    1. ajax or ESI to update specific part , this requires certain coding skills
    2. purge the cache on the event when your other plugin gets new data through our purge API
    3. set page cache to shorter TTL, for example if your other plugin updates once every hour , then set TTL to one hour or shorter , so the update can be reflect sooner

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