Forums / All Other Contributions/Addons / Query Cache v1.0

Query Cache v1.0

Started by data_digger on 5 Jan 2009, 10:56 AM · Views: 36,403

Results 81 to 100 of 133
21 Mar 2010, 4:51 AM
#81
drbyte avatar

drbyte

Sensei

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

Query Cache v1.0

Tick:

Hopefully Zen 2.0 will address the issue by moving to an object-oriented approach to products that will store the values in memory rather than needlessly re-executing queries.
As has been stated elsewhere, it does.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 May 2010, 5:41 PM
#83
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Location:
Edinburgh, Scotland
Posts:
243
Plugin Contributions:
0

Re: Query Cache v1.0

Hi there,

I have this mod installed in my store and am wondering if anyone has some information on its compatibility with 1.3.9c before I attempt an upgrade.

Any help much appreciated.

3 Jun 2010, 6:46 PM
#84
donplay avatar

donplay

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Re: Query Cache v1.0

I clicked through to see if there was a solution for the incompatibility between Google Base and this mod but didn't see any details. Has anyone been able to work through this?

thanks,
Don

3 Jun 2010, 8:48 PM
#85
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Query Cache v1.0

fergusmacdonald:

Hi there,

I have this mod installed in my store and am wondering if anyone has some information on its compatibility with 1.3.9c before I attempt an upgrade.

Any help much appreciated.

i don't think this would be compatible with 139a,b,c,d , as query_factory.php has been changed in new releases .

11 Jun 2010, 4:57 PM
#86
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Query Cache v1.0

tony_sar:

i don't think this would be compatible with 139a,b,c,d , as query_factory.php has been changed in new releases .

You're right ... there were changes to both query_factory.php and functions_categories between zc1.3.8a and 1.3.9c. The attached zip-file has the merged version that combines Query Cache v1.6 and the respective files from ZC 1.3.9c; there is no directory structure in the zip-file, so you need to copy the files to:

/includes/classes/db/mysql/query_factory.php
/includes/functions/functions_categories.php

15 Jun 2010, 6:06 PM
#87
mdegrandis avatar

mdegrandis

New Zenner

Join Date:
Jun 2008
Location:
Oregon
Posts:
60
Plugin Contributions:
0

Re: Query Cache v1.0

Anybody get this working in 1.3.9d? I tried it, and it doesn't break the cart, but it also does not lower queries.

It is a fresh install that I used my custom template from 1.3.8a.
Mod wise it has IH2.
It has php 5.2.11 and mysq 5.0.90

Tried running it with query log as well. This is the output:

QUERY DEBUG: Requested execution of: 0 queries. Executed: 7073 queries. Returned from cache: -7073 queries.

SUM: 0

Thanks!

NiceBadge.com Lifetime guarantee on all badges! Free mock ups, 24 hour turn around time!

22 Jun 2010, 11:53 AM
#88
dan123 avatar

dan123

New Zenner

Join Date:
Apr 2008
Posts:
82
Plugin Contributions:
0

Re: Query Cache v1.0

Hi all, first of all thanks for this great module!!!
I have a question, I found that I have 2 queries that are pretty slow. the first one is caused by my SSU module, when I checked ssu_cache table, it has more than 100,000 rows. And the second one is whoisonline. Did anybody else have this issue and knows how to fix it????
Thank you!!!!!

7 Jul 2010, 6:34 AM
#89
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,019
Plugin Contributions:
2

Re: Query Cache v1.0

lat9:

You're right ... there were changes to both query_factory.php and functions_categories between zc1.3.8a and 1.3.9c. The attached zip-file has the merged version that combines Query Cache v1.6 and the respective files from ZC 1.3.9c; there is no directory structure in the zip-file, so you need to copy the files to:

/includes/classes/db/mysql/query_factory.php
/includes/functions/functions_categories.php

Hi all

I am getting bucket loads (around one per query) of the following error messages with the above updates.

[07-Jul-2010 08:36:33] PHP Warning: mysql_data_seek() [<a href='function.mysql-data-seek'>function.mysql-data-seek</a>]: Offset 0 is invalid for MySQL result index 395 (or the query data is unbuffered) in ...\includes\classes\query_cache.php on line 38

After having tried so many combinations of the switches, I have run out of ideas how to fix.

12 Aug 2010, 9:41 AM
#90
qrhuang728 avatar

qrhuang728

New Zenner

Join Date:
Dec 2009
Posts:
5
Plugin Contributions:
0

Re: Query Cache v1.0

I really appreciate your good work on QueryCache, I have read your code and want to apply in my website, but there is one thing I need to know before:
In your code,you check the existing of Cache objects, if exists, return directly, if not exists, query from database and then return. but when cache create and things changed, how can I init all the things so that it can read all the things from database again? just like SEO cache.

15 Sep 2010, 5:08 PM
#91
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

Re: Query Cache v1.0

Zencart 1.3.9f

If I install this unto my site, does it matter what the setting is for the SQL_CACHE_METHOD? (none, file, or db)

https://www.jhelectronics.com
Using Zencart 1.3.9h

15 Oct 2010, 9:12 PM
#92
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: Query Cache v1.0

The download file does not include Zen-cart version 1.3.9. Has anyone has success with following 1.3.8 instead?

Thanks, Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

1 Dec 2010, 3:20 AM
#93
imustbeme avatar

imustbeme

New Zenner

Join Date:
Sep 2010
Posts:
1
Plugin Contributions:
0

Re: Query Cache v1.0

dw08gm:

Hi all

I am getting bucket loads (around one per query) of the following error messages with the above updates.

After having tried so many combinations of the switches, I have run out of ideas how to fix.

I'm seeing the same thing on my site. Did anyone ever solve this problem? I'm running 1.3.9f.

1 Dec 2010, 2:32 PM
#94
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,019
Plugin Contributions:
2

Re: Query Cache v1.0

I got no replies so I decided to abandon the mod under 139.

Under 138, I had found only a modest improvement in performance, so abandoning the mod in 139 was no real loss as far as my site is concerned.

Since abandoning, I have found other ways to improve performance, although I have only a vague memory of what was done.

Cheers

3 Jan 2011, 4:37 PM
#98
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Query Cache v1.0

Dan123:

Hi all, first of all thanks for this great module!!!
I have a question, I found that I have 2 queries that are pretty slow. the first one is caused by my SSU module, when I checked ssu_cache table, it has more than 100,000 rows. And the second one is whoisonline. Did anybody else have this issue and knows how to fix it????
Thank you!!!!!

I highly recommend changing storage engine of whos_online table to InnoDB. You'll avoid locking issues with this table (it's updated on EVERY request).

4 Jan 2011, 5:51 AM
#99
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Re: Query Cache v1.0

I tried that, it reduced the number of queries, but looks like the parse time is still high, especiall on the first hit (where there is no hit to my site in the previous 15 mins or so), it can be as high as 10+ seconds:

http://www.kingoflaptops.com/

:-(

4 Jan 2011, 2:16 PM
#100
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: Query Cache v1.0

Cindy2010:

I tried that, it reduced the number of queries, but looks like the parse time is still high, especiall on the first hit (where there is no hit to my site in the previous 15 mins or so), it can be as high as 10+ seconds:

http://www.kingoflaptops.com/

:-(

Can You check if query time is also high? What times do You get? PM me as it's most probably not related to QueryCache and We shouldn't continue the discussion here.