[Skip to main content](#vessel-content)

#   CDN Caching and Live Auction Updates

##

- **[lucad](/forum/user/83792-lucad "View lucad's Profile")**
- [![lucad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83792-lucad "View lucad's Profile") Topic Author
- [ Offline](/forum/user/83792-lucad)

Less More

- Posts: 151
- Thank you received: 8
-

3 months 2 weeks ago [\#372564](#372564) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372564 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")* was created by *[lucad](/forum/user/83792-lucad "View lucad's Profile")*

-- HikaShop version -- : 6.5.1
-- HikaAuction version -- : 6.0.2
-- Joomla version -- : 6.1.2
-- PHP version -- : 8.4

Hello Team

I'm using HikaAuction together with a CDN.
While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.

The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.

My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.

Any advice on how to do this please?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 months 2 weeks ago [\#372565](#372565) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372565 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

Hi,

Well, what CDN are you using and how did you configure it ? That would be necessary in order to understand the situation before I can recommend anything precise.

The following user(s) said Thank You: [lucad](/forum/user/83792-lucad "View lucad's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lucad](/forum/user/83792-lucad "View lucad's Profile")**
- [![lucad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83792-lucad "View lucad's Profile") Topic Author
- [ Offline](/forum/user/83792-lucad)

Less More

- Posts: 151
- Thank you received: 8
-

3 months 2 weeks ago [\#372573](#372573) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  Replied by *[lucad](/forum/user/83792-lucad "View lucad's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372573 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

Hi Nicolas, thank you for your answer

Regarding my setup, I use Bunny CDN in conjunction with Amazon S3 and a custom CDN plugin.
Beyond these details, it is difficult for me to provide further technical explanation.

I am providing confidentially the login credentials for my website below.
I would greatly appreciate it if you could take a look please.

Thank you

This message contains confidential information

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 months 2 weeks ago [\#372574](#372574) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372574 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

Hi,

Thanks for the details.

The bid amount, current price and auction status are generated by HikaAuction on the server side, directly inside the HTML of the page, at the moment the page is built. So if your CDN stores that HTML page, every visitor is served the cached copy with the bid data frozen as it was when it got cached, until the cache expires. That is exactly the behaviour you describe.

The fix is to keep caching the static files (images, CSS, JS) but stop the CDN from caching the HTML of the auction pages:

- In your Bunny CDN pull zone, the HTML/"document" responses of the auction pages must not be cached. You can either set Bunny to honour the origin Cache-Control headers, or add an edge rule that bypasses the cache for the auction URLs (the com_hikashop pages that display the auctions).
- The "HikaShop CDN" plugin you use (com_joomlamax_hikashopcdn) is a third-party extension, not one of ours. It is normally meant to offload static assets only. If it also offers a page/HTML caching option, exclude the auction pages there as well.

Static assets are identical for every visitor, so they can stay fully cached; only the HTML of the auction pages needs to bypass the cache.

The following user(s) said Thank You: [lucad](/forum/user/83792-lucad "View lucad's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lucad](/forum/user/83792-lucad "View lucad's Profile")**
- [![lucad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83792-lucad "View lucad's Profile") Topic Author
- [ Offline](/forum/user/83792-lucad)

Less More

- Posts: 151
- Thank you received: 8
-

3 months 2 weeks ago [\#372578](#372578) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  Replied by *[lucad](/forum/user/83792-lucad "View lucad's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372578 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

Ok understood, will try to sort it out

Thank you Nicolas!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lucad](/forum/user/83792-lucad "View lucad's Profile")**
- [![lucad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83792-lucad "View lucad's Profile") Topic Author
- [ Offline](/forum/user/83792-lucad)

Less More

- Posts: 151
- Thank you received: 8
-

3 months 1 week ago [\#372628](#372628) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  Replied by *[lucad](/forum/user/83792-lucad "View lucad's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372628 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

Hello again

I have confirmed with my developer that we just push/load images assets on our CDN

Infact, after disabling both the cache and the CDN for testing, the issue is the same.

Found out that only the price updates correctly, while the number of bids and the message below it does not get updated.

Please refer to [ this screenshot](https://drive.google.com/file/d/1hX4-Qnnlfz9s4kWu-9aAAyhfUDsYPbHK/view?usp=sharing) and [ video](https://drive.google.com/file/d/1mwqIznoKzU8gA4_1LXfg6iD1UQXXgRNc/view?usp=sharing) for details.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 months 1 week ago [\#372635](#372635) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372635 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

Hello

Thanks for testing with the CDN and cache turned off. That rules out the caching and points to how the live update works on the auction page. I had a look at your jaguar10 auction to be sure.

HikaAuction refreshes the auction while people watch it with a small script that polls the server every few seconds and writes the new values back into specific elements of the page, each one found by its CSS class. On your page the price updates because your price element kept HikaAuction's original id:
Code:

&lt;span id="winning_price" name="winning_price"&gt;€ 2.750&lt;/span&gt;

The number of bids does not update because, in your customized template, the value sits in your own class and no longer carries the class the script looks for. You currently have:
Code:

&lt;span class="scb-bid-count-value"&gt;14&lt;/span&gt;

The script updates the number of bids by looking for the class bid_number_value, so add it next to your own class (keep both):
Code:

&lt;span class="scb-bid-count-value bid_number_value"&gt;14&lt;/span&gt;

The same applies to the other live values. Add the matching class to the element that shows each one in your override:
Code:

bidder_number_value number of bidders bidder_winning_state winning / losing message

Once those classes are present the live update will fill them in on every poll, the same way it already does for the price.

The following user(s) said Thank You: [lucad](/forum/user/83792-lucad "View lucad's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lucad](/forum/user/83792-lucad "View lucad's Profile")**
- [![lucad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/83792-lucad "View lucad's Profile") Topic Author
- [ Offline](/forum/user/83792-lucad)

Less More

- Posts: 151
- Thank you received: 8
-

3 months 1 week ago [\#372662](#372662) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  Replied by *[lucad](/forum/user/83792-lucad "View lucad's Profile")* on topic *[CDN Caching and Live Auction Updates](/forum/54-auction-how-to/910661-cdn-caching-and-live-auction-updates#372662 "-- HikaShop version -- : 6.5.1 -- HikaAuction version -- : 6.0.2 -- Joomla version -- : 6.1.2 -- PHP version -- : 8.4  Hello Team  I'm using HikaAuction together with a CDN. While the CDN is working well for caching images, CSS, JavaScript, and other static assets, I believe it is also caching part of the auction data.  The issue I'm seeing is that when a user places a bid, other users who are viewing the same auction are not notified of the new bid or the updated auction status. The page appears to continue serving cached data until the cache expires or the page is manually refreshed.  My goal is to continue using the CDN for all static content to improve performance, but exclude the HikaAuction dynamic data (such as bids, current price, auction status, etc.) from being cached so that all users see updates immediately.  Any advice on how to do this please?  Thank you.")*

That worked perfectly Nicolas, thank you.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU0LWF1Y3Rpb24taG93LXRvLzkxMDY2MS1jZG4tY2FjaGluZy1hbmQtbGl2ZS1hdWN0aW9uLXVwZGF0ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.240 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
