VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Florentp on August 21, 2012, 10:54:02 AM

Title: Serious cache solution for VM2
Post by: Florentp on August 21, 2012, 10:54:02 AM
Hi Everyone.

I'm looking for a serious and working way to set cache with vm2 & joomla 2.5.
My shop have like 30.000 products, all using stockable variants... And like an 150 product categories.
My website is really slow. Ok I have traffic (always a minimum of 20 people at same time), but i must fix my server overcharge.

So, about cache, is that solution still working : ?
Quote from: benm on August 25, 2008, 11:39:59 AM
Hi Casper,

I had this exact same problem and I put in a small hack to get around this:

In the file /plugins/system/cache.php

Change line 60:

if (!$user->get('aid') && $_SERVER['REQUEST_METHOD'] == 'GET') {

to

if (!$user->get('aid') && !$_SESSION['cart']['idx'] && $_SERVER['REQUEST_METHOD'] == 'GET') {

I'm basically just telling the cache plugin to not display the cached page if the customer has anything in the cart!

Let me know if it works.

-Ben

Or is there any better way to do ?
Tanks !
Title: Re: Serious cache solution for VM2
Post by: bytelord on August 21, 2012, 11:19:33 AM
Hello,

There is also an option to use jotcache extension on your site (it's free ext. http://extensions.joomla.org/extensions/core-enhancements/performance/cache/13155). You can exclude specific components, modules or even positions over your site. Fox example you could exclude the cart module and the cart/checkout pages.
I have used successfully.

Hope helps you out.

Regards
Title: Re: Serious cache solution for VM2
Post by: Florentp on August 21, 2012, 11:27:27 AM
Oh !
Nice ! Thank you !
I'll have a look !
Title: Re: Serious cache solution for VM2
Post by: namangarg88 on September 05, 2012, 20:12:50 PM
Hi Federa
Your solution is not working with my website.  I am even not able to edit the bill to information and shipping information. It takes 1 min(cache time out time) to display these information.
Can you suggest me something
Title: Re: Serious cache solution for VM2
Post by: PRO on September 05, 2012, 21:13:27 PM
I use JCHoptimize for css files only

It helps

Title: Re: Serious cache solution for VM2
Post by: Florentp on September 09, 2012, 13:06:46 PM
Quote from: namangarg88 on September 05, 2012, 20:12:50 PM
Hi Federa
Your solution is not working with my website.  I am even not able to edit the bill to information and shipping information. It takes 1 min(cache time out time) to display these information.
Can you suggest me something

which release are you using?
For me, works like a charm
Title: Re: Serious cache solution for VM2
Post by: namangarg88 on September 25, 2012, 03:30:41 AM
Hey Federa,
I am using Joomla 1.5.26 and VM2.
You can check out the URL: www.giftjaipur.com/test
Title: Re: Serious cache solution for VM2
Post by: RosaMagma on September 28, 2012, 17:23:39 PM
Hello,
bytelord, how can exclude specific MODULES from my site using jotcache?
Thanks in advance
Title: Re: Serious cache solution for VM2
Post by: bytelord on September 28, 2012, 17:46:51 PM
Hello,

Yes you can. Please read that article from the jotcache vendors site. http://www.jotcomponents.net/web-programming/jotcache/125-jotcache-plugin-with-module-exclusions
and here: http://jotcomponents.net/web-programming/jotcache/jotcache-help/126-jotcache-ver-3-0-help?showall=&start=3
Regards
Title: Re: Serious cache solution for VM2
Post by: RosaMagma on October 01, 2012, 13:59:43 PM
Hello,
Thanks bytelord, I have done it successfuly.
Now, my problem is that the Jocache doesn't work when the user is logged. Is there a way to make it work?
Thanks in advance
Title: Re: Serious cache solution for VM2
Post by: bytelord on October 01, 2012, 14:53:38 PM
Hello,

I don't know why, you should look a little bit more their web site or ask on their forum (http://www.jotcomponents.net/forum).

Rehgards
Title: Re: Serious cache solution for VM2
Post by: RosaMagma on October 01, 2012, 15:56:45 PM
Thanks bytelord,
I did it. I asked in their forum and they answered me that the cache systems doesn't work when users are logged.
Thanks again.
Title: Re: Serious cache solution for VM2
Post by: bytelord on October 01, 2012, 16:14:36 PM
Thanks for your input, is the way that joomla cache system works, the same for joomla default cache.