Zen Cart Logo
Forums / General Questions / Is there any guideline for SQL_CACHE_METHOD?

Is there any guideline for SQL_CACHE_METHOD?

Locked

Views: 1,117

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Dec 2010, 12:51 AM
#1
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Is there any guideline for SQL_CACHE_METHOD?

Hi,
I am asking for opinions and guideline.

My store carries more than 1600 products. Should I change the SQL_CACHE_METHOD setting in the configure.php to "file" or "database" for better performance? If yes, which one is better? and how? (I mean, do I just change the SQL_CACHE_METHOD setting here without doing anything else?)

I am using 1.3.9h and multi-xsell mod.

Thank you for any replies.

12 Dec 2010, 1:02 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is there any guideline for SQL_CACHE_METHOD?

I prefer file vs db to minimize additional mysql activity

12 Dec 2010, 1:39 AM
#3
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: Is there any guideline for SQL_CACHE_METHOD?

kobra:

I prefer file vs db to minimize additional mysql activity

thanks! :smile:

shall I just change the setting from "none" to "file" in both configure.php files without changing anything else?

In addition, will the cache folder grow very big? I searched the forum and saw some users talking about the folder size growing to several hundred MB.

Also, I just found this post by Dr.Byte http://www.zen-cart.com/forum/showpost.php?p=759177&postcount=2
Any opinions?

12 Dec 2010, 1:42 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is there any guideline for SQL_CACHE_METHOD?

shall I just change the setting from "none" to "file" in both configure.php files without changing anything else?
Yes - - nothing else as long a /cache exists

In addition, will the cache folder grow very big? I searched the forum and saw some users talking about the folder size growing to several hundred MB.
Not from using it for this purpose
Other thing can get placed there from other causes

12 Dec 2010, 1:43 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Is there any guideline for SQL_CACHE_METHOD?

Your number of products is largely irrelevant. The amount of traffic to your site is the main determiner. If you're not getting more than a couple thousand hits per hour, "none" is just fine.

12 Dec 2010, 1:51 AM
#6
justin2010 avatar

justin2010

New Zenner

Join Date:
May 2010
Posts:
52
Plugin Contributions:
0

Re: Is there any guideline for SQL_CACHE_METHOD?

Thanks for all the replies from Kobra and DrByte.

Very clear.

My store doesn't get several thousand hits every day (Maybe once or twice a month during a sales event) so I will leave it as "none" for now.