Re: [PHP] APC caching keys.

2005-11-21 Thread Marcus Bointon
On 19 Nov 2005, at 04:07, Curt Zirzow wrote: If you are using mysql i would use the SQL_CACHE flag, it will eliminate the need for you to manage the cache. You don't necessarily need to us the SQL_CACHE flag in queries - you can just turn on the query cache globally using query_cache_type=1

Re: [PHP] APC caching keys.

2005-11-21 Thread Jochem Maas
Marcus Bointon wrote: On 19 Nov 2005, at 04:07, Curt Zirzow wrote: If you are using mysql i would use the SQL_CACHE flag, it will eliminate the need for you to manage the cache. You don't necessarily need to us the SQL_CACHE flag in queries - you can just turn on the query cache globally

Re: [PHP] APC caching keys.

2005-11-21 Thread Marcus Bointon
On 21 Nov 2005, at 10:54, Jochem Maas wrote: having said that I don't use __autoload() - I did but it was just a PITA - I thought it was a good idea for a while... One major irritation with it is that with standard error reporting you can't tell where a missing class can't be found from

RE: [PHP] APC caching keys.

2005-11-18 Thread Jared Williams
I have started making use of the APC extension to cache opcodes, etc now I'm also trying to cache the output of some sql queries and I want to use a hash of the query as key to store/fetch the value e.g: apc_fetch(md5($qry)) does anyone know of a good reason (including performance

Re: [PHP] APC caching keys.

2005-11-18 Thread Jochem Maas
Jared Williams wrote: I have started making use of the APC extension to cache opcodes, etc now I'm also trying to cache the output of some sql queries and I want to use a hash of the query as key to store/fetch the value e.g: apc_fetch(md5($qry)) does anyone know of a good reason (including

Re: [PHP] APC caching keys.

2005-11-18 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 04:32:29PM +0100, Jochem Maas wrote: I have started making use of the APC extension to cache opcodes, etc now I'm also trying to cache the output of some sql queries and I want to use a hash of the query as key to store/fetch the value e.g: apc_fetch(md5($qry)) If