# HubDB dynamic pages stuck in cache

**URL:** <https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719>\
**Category:** CMS Development\
**Created:** [November 6, 2020, 8:43pm UTC](https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719 "2020-11-06T20:43:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelDev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/michaeldev/32/39641_2.png) [@MichaelDev](https://community.hubspot.com/u/MichaelDev)\
**Post date:** [November 6, 2020, 8:43pm UTC](https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719/1 "2020-11-06T20:43:10Z")

</div>

I’m having a problem with HubDB dynamic pages getting stuck in CloudFlare cache.

When I update the template or content, the dynamic page content never gets updated.

In order to update the dynamic page, I have to change the slug and load a new URL.

Here’s a page that’s stuck in cache [https://www.getleverage.com/services/process-optimization-roadmap](https://www.getleverage.com/services/process-optimization-roadmap)

If you look at the HubDB table, you’ll see that I changed the slug for that product. Once I changed the slug, I was able to see the changes at the new slug [https://www.getleverage.com/services/process-optimization-roadmap-v2](https://www.getleverage.com/services/process-optimization-roadmap-v2)

Change the slug back to the version with “-v2” and try to make a change. It won’t show up.

I’m sure this is a CloudFlare issue and not a browser issue because the server headers say “Cache HIT”. I’ve tried from several different computers/networks and got the same results.

It’s running from this page [Edit Page | HubSpot](https://app.hubspot.com/content/6340683/edit/36867720344/content)

Thanks!

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [November 8, 2020, 1:35am UTC](https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719/2 "2020-11-08T01:35:13Z")

</div>

@MichaelDev I ran into this issue once before. A Hubspotter in the Hubspot dev Sack fixed it for me though I have no idea what they did. I’d try asking about it [in the Slack](https://developers.hubspot.com/slack) or even hitting up Hubspot support. Certainly if it’s a server issue it’s something the Hubspot devs would need to take care of.

---

<div class="post-metadata">

**Author:** ![sking1](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sking1](https://community.hubspot.com/u/sking1)\
**Post date:** [November 9, 2020, 5:48pm UTC](https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719/3 "2020-11-09T17:48:08Z")

</div>

You could try a hack of placing the HubSpot “local\_dt” variable somewhere (hidden) on your page which disables caching. [HubL variables - HubSpot docs](https://developers.hubspot.com/docs/cms/hubl/variables)

---

<div class="post-metadata">

**Author:** ![MichaelDev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/michaeldev/32/39641_2.png) [@MichaelDev](https://community.hubspot.com/u/MichaelDev)\
**Post date:** [November 9, 2020, 10:46pm UTC](https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719/4 "2020-11-09T22:46:09Z")

</div>

> * * *
> 
> @sking1 wrote:
> 
> You could try a hack of placing the HubSpot “local\_dt” variable somewhere (hidden) on your page which disables caching. [HubL variables - HubSpot docs](https://developers.hubspot.com/docs/cms/hubl/variables)
> 
> * * *

That did the trick, thanks! The pages are no longer stuck in the cache and are updating properly.

---

<div class="post-metadata">

**Author:** ![JMendoza2](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@JMendoza2](https://community.hubspot.com/u/JMendoza2)\
**Post date:** [February 23, 2024, 5:18pm UTC](https://community.hubspot.com/t/hubdb-dynamic-pages-stuck-in-cache/27719/5 "2024-02-23T17:18:51Z")

</div>

This issue still shows up even if I add local\_dt as instructed, is there any other fix for this? newly posted blogs are now showing on a listing page that uses blog\_recent\_tag\_posts.
