News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Serious cache solution for VM2

Started by Florentp, August 21, 2012, 10:54:02 AM

Previous topic - Next topic

Florentp

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 !
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Florentp

Oh !
Nice ! Thank you !
I'll have a look !
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique

namangarg88

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

PRO

I use JCHoptimize for css files only

It helps


Florentp

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
Web programmer. Passionate.
PHP, SQL, Javascript, JQuery, css.
Skype : florent.indienboutique

namangarg88

Hey Federa,
I am using Joomla 1.5.26 and VM2.
You can check out the URL: www.giftjaipur.com/test

RosaMagma

Hello,
bytelord, how can exclude specific MODULES from my site using jotcache?
Thanks in advance

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

RosaMagma

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

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

RosaMagma

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.

bytelord

#12
Thanks for your input, is the way that joomla cache system works, the same for joomla default cache.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!