Title: ESI shortcode TTL not working
Last modified: October 27, 2023

---

# ESI shortcode TTL not working

 *  Resolved [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/)
 * (@joostvanderzanden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/)
 * I have an ESI shortcode enabled ([esi shortcode_name cache=”private” ttl=”0″])
   on this site but it takes the default private cache value. No matter what I add
   as attribute to the shortcode, it will be overwritten by the default private 
   cache TTL.
 * This block shows related products and when i navigate to another page, there 
   should be different items, but it shows the cached variant of the previous page.
 * I am also using Quic.cloud CDN with cache enabled. I’ve tried all different setups,
   but nothing works. Can you help me?
 * Environment report – **FQYQZZFS**
    -  This topic was modified 2 years, 9 months ago by [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/).
    -  This topic was modified 2 years, 9 months ago by [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/).

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17157142)
 * please remove the part `cache="private"` since it’s ttl=0 , which means generated
   dynamically , no need to privatize it
 *  Thread Starter [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/)
 * (@joostvanderzanden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17157938)
 * Thank you for your reply. 
   I tried the following things:[esi shortcode_name ttl
   =”0″][esi shortcode_name ttl=0][esi shortcode_name ttl=”″][esi shortcode_name
   ttl=”1″]
 * Only the last one works (ttl=”1″). If I fill in 0 or nothing, the default private
   TTL from the settings is applied.
   So now it caches the ESI block for 1 second.
   That is okay, but no cache would be perfect.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17159569)
 * em , interesting , please set it to 0 , then go to debug log , add debug include
   URI with `lsesi` , then trigger the ESI shortcode , and share the debug log ,
   see what it says.
 *  Thread Starter [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/)
 * (@joostvanderzanden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17161223)
 * Thanks, I’ve sent the log in the ticket center.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17168327)
 * we have 2 ticket systems, may I know which one you sent ? or any ticket number
   as reference I can check ?
 *  Thread Starter [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/)
 * (@joostvanderzanden)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17170260)
 * Quic.cloud ticket center.
 * Ticket number = 72185715

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

The topic ‘ESI shortcode TTL not working’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [joostvanderzanden](https://wordpress.org/support/users/joostvanderzanden/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/esi-shortcode-ttl-not-working/#post-17170260)
 * Status: resolved