CMS Development

BBecker1
Participant

Author page cached

SOLVE

Hello,

A few weeks ago, I created a module that integrates with HubDB and the author pages. It checks whether the author's email matches a row in the HubDB table and then populates the page with data from that row. This setup makes it easy for the team to update author pages through HubDB.

However, when they make changes, the updates don’t appear immediately—only when using hsCacheBuster. This means we have to manually update the page to see the new data, which defeats the purpose of having easy, dynamic updates.

 

How can we solve this issue?


{% set rows = hubdb_table_rows(105970502) %}

<style>
{% for row in rows %}
  {% if row.email == blog_author.email %}
    :root{
      --author_color: #{{row.color}}; 
      
    }
  {% endif %}
  {% endfor %}
</style>
2 Accepted solutions
kosalaindrasiri
Solution
Top Contributor | Partner
Top Contributor | Partner

Author page cached

SOLVE

@kennedyp thanks for the mention!

Hey @BBecker1

I totally get the frustration 😥; this is one of those sneaky HubSpot quirks that catches a lot of us.

So even though you're pulling from HubDB, the author page itself is heavily cached, especially with blog content.

 

That means your {% set rows = hubdb_table_rows(...) %} line isn’t re-run every time someone visits the page.

That’s why changes in HubDB don’t show up unless you manually add ?hsCacheBuster= to the URL.

 

If possible, consider turning the author pages into proper HubDB dynamic pages (using hs_path). These have way lighter caching and pull fresh HubDB data without needing a cache buster.

 

Hope this helps!

 

Regards,

Kosala

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

View solution in original post

BBecker1
Solution
Participant

Author page cached

SOLVE

@kenny I found the Solution myself but forgot to post it here.

So I am really not sure why this was happening.

What I did to fix is is add a new module and add the local_dt in the name of de module so the module can't be cached and makes the call everytime to the hubdb. Its not a importand page as it is the Author page but it seems to do the trick.

View solution in original post

4 Replies 4
BBecker1
Solution
Participant

Author page cached

SOLVE

@kenny I found the Solution myself but forgot to post it here.

So I am really not sure why this was happening.

What I did to fix is is add a new module and add the local_dt in the name of de module so the module can't be cached and makes the call everytime to the hubdb. Its not a importand page as it is the Author page but it seems to do the trick.

kosalaindrasiri
Solution
Top Contributor | Partner
Top Contributor | Partner

Author page cached

SOLVE

@kennedyp thanks for the mention!

Hey @BBecker1

I totally get the frustration 😥; this is one of those sneaky HubSpot quirks that catches a lot of us.

So even though you're pulling from HubDB, the author page itself is heavily cached, especially with blog content.

 

That means your {% set rows = hubdb_table_rows(...) %} line isn’t re-run every time someone visits the page.

That’s why changes in HubDB don’t show up unless you manually add ?hsCacheBuster= to the URL.

 

If possible, consider turning the author pages into proper HubDB dynamic pages (using hs_path). These have way lighter caching and pull fresh HubDB data without needing a cache buster.

 

Hope this helps!

 

Regards,

Kosala

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

BBecker1
Participant

Author page cached

SOLVE

I already tried request.cookies and putting local_dt in the content. the local_dt changes but the hubdb content stays the same.

0 Upvotes
kennedyp
Community Manager
Community Manager

Author page cached

SOLVE

I want to invite some subject matter experts to see if they have any suggestions.

Hey @albertsg, @AddaxLab1, @kosalaindrasiri do you have any thoughts on this?


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !