Title: Problem with ESI Shortcode
Last modified: April 26, 2023

---

# Problem with ESI Shortcode

 *  Resolved [devtestconcise](https://wordpress.org/support/users/devtestconcise/)
 * (@devtestconcise)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/problem-with-esi-shortcode/)
 * Hi,
 * I need few elements to have very less Cache time and so I added them as Shortcodes
   with ESI as given below.
 *     ```wp-block-code
       <?php echo do_shortcode('[esi asx_price ttl="30"]'); ?>
       ```
   
 * It’s working fine but after few days, these Shortcodes not returning anything
   and just empty. Please see below for rendered output with blank data.
 *     ```wp-block-code
       <h4><!-- lscwp esi-shortcode --><!-- Block generated by LiteSpeed Cache 5.3.3 on 2023-04-25 16:42:06 --><!-- lscwp esi-shortcode esi end --></h4>
       ```
   
 * But when **I flush LiteSpeed Cache**, it starts working again and an example 
   of the rendered output of Shortcode is given below.
 *     ```wp-block-code
       <h4><!-- lscwp esi-shortcode --><a href="https://www.example.com" target="_blank">ASX:  $0.105 <span class="green">0%</span></a><!-- Block generated by LiteSpeed Cache 5.3.3 on 2023-04-26 10:23:22 --><!-- lscwp esi-shortcode esi end --></h4>
       ```
   
 * This issue is appearing in all my sites and can you let me know what’s wrong 
   with this and why only these Shortcodes rendering blank output after a few days
   when I manually flush LiteSpeed Cache?

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/problem-with-esi-shortcode/#post-16693953)
 * please create a ticket by mail to `support at litespeedtech.com` with reference
   link to this topic , we will investigate further.
 *  Thread Starter [devtestconcise](https://wordpress.org/support/users/devtestconcise/)
 * (@devtestconcise)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/problem-with-esi-shortcode/#post-16694547)
 * OK thanks

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

The topic ‘Problem with ESI Shortcode’ 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/)

## Tags

 * [esi](https://wordpress.org/support/topic-tag/esi/)

 * 2 replies
 * 2 participants
 * Last reply from: [devtestconcise](https://wordpress.org/support/users/devtestconcise/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/problem-with-esi-shortcode/#post-16694547)
 * Status: resolved