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

#   Cart Module completely crazy...

##

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

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 4 months ago [\#55623](#55623) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  *[Cart Module completely crazy...](/forum/2-general-talk-about-hikashop/55623-cart-module-completely-crazy#55623 "Hi,  I have a very, very strange behaviour in the cart module that shows the content of the cart.  I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.  When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.  It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.  Now, it gets even weirder. When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.  Note that these two PC's are completely separated from each other, different IP's different provider, etc.  How is it possible that a product put in the cart appears on a completely other PC's cart???  I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.  Please help.  Maurice")* was created by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")*

Hi,

I have a very, very strange behaviour in the cart module that shows the content of the cart.

I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.

When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.

It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.

Now, it gets even weirder.
When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.

Note that these two PC's are completely separated from each other, different IP's different provider, etc.

How is it possible that a product put in the cart appears on a completely other PC's cart???

I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.

Please help.

Maurice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU1NjIzLWNhcnQtbW9kdWxlLWNvbXBsZXRlbHktY3Jhenk/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#55641](#55641) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Module completely crazy...](/forum/2-general-talk-about-hikashop/55623-cart-module-completely-crazy#55641 "Hi,  I have a very, very strange behaviour in the cart module that shows the content of the cart.  I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.  When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.  It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.  Now, it gets even weirder. When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.  Note that these two PC's are completely separated from each other, different IP's different provider, etc.  How is it possible that a product put in the cart appears on a completely other PC's cart???  I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.  Please help.  Maurice")*

It's probably because you have caching activated on your website.
Three possibilities:
Disable the cache in Joomla configuration.
Site -&gt; global configuration -&gt; system -&gt; "Cache settings".
Disable, if it's enabled, a joomla cache plugin.
Check your template' options for a potential cache option and deactivate it.

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

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

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 4 months ago -  14 years 4 months ago [\#55643](#55643) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  Replied by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")* on topic *[Re: Cart Module completely crazy...](/forum/2-general-talk-about-hikashop/55623-cart-module-completely-crazy#55643 "Hi,  I have a very, very strange behaviour in the cart module that shows the content of the cart.  I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.  When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.  It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.  Now, it gets even weirder. When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.  Note that these two PC's are completely separated from each other, different IP's different provider, etc.  How is it possible that a product put in the cart appears on a completely other PC's cart???  I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.  Please help.  Maurice")*

Hi Nicolas,

Thank you for your very quick response!

Our site is a heavily visited news site ( &gt;150K pagehits per day) with a shop. So caching is definitely needed and cannot be turned off for that part. If we turn it off our database gets overloaded with queries within seconds.

How can I turn off caching for the shop / cart only?
Normally a module has some global parameters where you can edit or disable caching for that module only.
The mod_hikashop_cart module does not have that feature.

Maurice

Last edit: 14 years 4 months ago by [Maurice](/forum/user/7972-maurice "View Maurice's Profile").

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

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

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 4 months ago -  14 years 4 months ago [\#55657](#55657) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  Replied by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")* on topic *[Re: Cart Module completely crazy...](/forum/2-general-talk-about-hikashop/55623-cart-module-completely-crazy#55657 "Hi,  I have a very, very strange behaviour in the cart module that shows the content of the cart.  I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.  When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.  It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.  Now, it gets even weirder. When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.  Note that these two PC's are completely separated from each other, different IP's different provider, etc.  How is it possible that a product put in the cart appears on a completely other PC's cart???  I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.  Please help.  Maurice")*

Hi Nicolas,

After your suggestion about caching I did some testing and found out that it is indeed caching that causes the problem.

The cart module at the left still displays cart content when I empty the cart. When I refresh the page by hitting Ctrl+F5, the cart module still shows products in it, while in fact the cart IS empty.

When I manually clear the Joomla cache in the backend and refresh the frontend again by hitting Ctrl+F5, the module shows that the cart is empty.

So definitely a caching issue.

So how can I force the cart module to never cache the data it uses?

Maurice

Last edit: 14 years 4 months ago by [Maurice](/forum/user/7972-maurice "View Maurice's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU1NjIzLWNhcnQtbW9kdWxlLWNvbXBsZXRlbHktY3Jhenk/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#55756](#55756) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Module completely crazy...](/forum/2-general-talk-about-hikashop/55623-cart-module-completely-crazy#55756 "Hi,  I have a very, very strange behaviour in the cart module that shows the content of the cart.  I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.  When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.  It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.  Now, it gets even weirder. When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.  Note that these two PC's are completely separated from each other, different IP's different provider, etc.  How is it possible that a product put in the cart appears on a completely other PC's cart???  I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.  Please help.  Maurice")*

There is no caching option in the module because it's turned off for the module.
However, if you cache whole pages of your website, the modules settings won't be taken into account.
Also, for caching per module, it doesn't work well on some versions of Joomla and it caches all of them.

The solution is to not use the caching system of Joomla but to use a more fine grained one.
For example, that extension:
[ extensions.joomla.org/extensions/core-en...formance/cache/17783](http://extensions.joomla.org/extensions/core-enhancements/performance/cache/17783)

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

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

Less More

- Posts: 151
- Thank you received: 9
-
-

14 years 4 months ago [\#55839](#55839) by [Maurice](/forum/user/7972-maurice "View Maurice's Profile")  Replied by *[Maurice](/forum/user/7972-maurice "View Maurice's Profile")* on topic *[Re: Cart Module completely crazy...](/forum/2-general-talk-about-hikashop/55623-cart-module-completely-crazy#55839 "Hi,  I have a very, very strange behaviour in the cart module that shows the content of the cart.  I have two PC's to test the site, each PC has a different Internet Provider and a different IP address. They are completely separated from each other.  When I open the shop on PC1 and put a product in the cart, after a while I open the shop on PC2 and I see that product appear in the cart there too! How is this possible? The PC's are 100% separated.  It gets worse, because when I try to empty the cart on PC2, it won't work. The cart remains filled. I close the site and webbrowser on PC2, reopen the site and the cart module shows emtpy.  Now, it gets even weirder. When I add another product in the cart on PC2, not the selected product is added to the cart but the previous one that suddenly appeared at the first place. So the deleted product is there again and not the selected product.  Note that these two PC's are completely separated from each other, different IP's different provider, etc.  How is it possible that a product put in the cart appears on a completely other PC's cart???  I hope someone can help me here explaning how the cart 'memory' works. Obviously it is not just a cookie, it looks like it is stored in the database and (all?) other 'guests' have access to it.  Please help.  Maurice")*

Hi,

Thansk for the excellent explanation. i installed the plugin you suggested, which is free, by the way, and I am currently testing.
Results are looking good so far!

Thank you.

Maurice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU1NjIzLWNhcnQtbW9kdWxlLWNvbXBsZXRlbHktY3Jhenk/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?

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

Time to create page: 0.053 seconds

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