Problems with cache and minicart module

GK User
Mon May 18, 2015 4:38 pm
Hi, If I enable joomla cache, the VirtueMart minicart module on top of the template stops working!

My current config is:
  • Enabled progressive cache in joomla config
  • Enabled page cache and GK cache plugins and set the GK cache plugin before the page cache plugin
  • In the template settings I enabled GK Cache, CSS Cache, CSS Comp, CSS Override, JS Comp

I think is some sort of VM-Joomla issue, because if I disable cache in joomla global config, it starts to work!. To add some weird to this thing, the cart popup on clicking the minicart gets updated ¿¿??

I'm Using Joomla 3.4.1 and VM 3.0.8

Take a look in my staging server https://it.mgscreativa.com.ar/mgs/en/on ... -hikashop-
User avatar
Expert Boarder

GK User
Thu May 21, 2015 12:34 am
Hi, I really need some hint on this. Now I realized that the checkout page gets cached too!
User avatar
Expert Boarder

GK User
Thu May 21, 2015 4:15 pm
Well, after a little digging I found useful to disable Joomla Page Cache Plugin, that solves the checkout page cache.

The issue still persist with gavick minicart modification!, the minicart gets always cached!

Tested into another site with fresh install of joomla! and VM 3.0.8 and VM minicart works just fine even with cache activated.

It seems that is something to do with the template.

Will appreciate some hints on this, really available to help fix this out.

Thanks a lot!
User avatar
Expert Boarder

teitbite
Sun May 24, 2015 6:45 pm
Hi

Please replace file gk_storefront/js/gk.scripts.js with one attached and disable admin tools if You have that installed.
User avatar
Moderator

GK User
Sun May 24, 2015 11:32 pm
Hi @teitbite sorry, but I have solved the issue and had no time to post here.

The steps to get full cache working like a champ:
  • Enable Joomla! conservative caching, DO NOT ENABLE PROGRESSIVE CACHING, read this and be happy http://www.itoctopus.com/why-progressiv ... most-cases
  • Download and install JOT Cache compoent to get a very manageable page cache http://www.jotcomponents.net/web-progra ... ions-group
  • Enable JotMarker and JotCache System plugins and reorder them to have JotMarker as the first system plugin and JotCache as the very last system plugin
  • Enable System - GK Cache system plugin and reorder it to be just before JotCache system plugin
  • VERY IMPORTANT! check if you have enabled System - Page Cache Joomla core system plugin, and disable it
  • Configure JotCache plugin settings as you like, more info here http://www.jotcomponents.net/web-progra ... r-5-0-help
  • Go to Components->JotCache then option "Exclude Location" and select "cart" and click save. This overrides cache of the minicart module and his popup
  • Go to Components->JotCache Then option "Exclude URL" and check "VIRTUEMART" line, the write down "view=cart,view=user,view=orders" (without quotes) in the text input box. This overrides page cache of the virtuemart cart view, and user and orders views also. Then got top page and click save.
  • Go to "extensions->Template Manager" and set on all your gk_storefront template instances in the "Advanced settings" tab Use GK Cache: Enabled, CSS cache: Enabled, CSS compression: Enabled, CSS override: Enabled. For JavaScript compression you have to check on you own, in my case JS started to misbehave if I set this to enabled

That's all, is a little tricky but in my particular case, I have solved all my cache issues with joomla!, GK Cache and compression and Jot Cache.

Best regards!
User avatar
Expert Boarder

GK User
Mon May 25, 2015 10:29 am
This work for me to. Thank you!
User avatar
Junior Boarder

teitbite
Wed May 27, 2015 4:34 pm
Hi

Thank You for this great and detailed explanation. I will tag it link to it in case someone will have the same question.

TAG:CACHE
User avatar
Moderator

GK User
Wed May 27, 2015 9:09 pm
Your'e welcome @teitbite, and thank you and the Gavick team for the great dedication put on every template!. Man, the responsive templates work great and saves me a LOT of extra work!

Thank you and the Gavck team!
User avatar
Expert Boarder


cron