[PHP] Caching in php?

2002-02-06 Thread Erick Papadakis

hello, 

i used asp and it seems there is an application object
which can help in caching of data. (e.g.,
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=142).


is this possible using php? what can i do to use
caching on my website which is totally database
driven?

thanks/erick

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Caching in php?

2002-02-06 Thread Wolfram Kriesing

 is this possible using php? what can i do to use
 caching on my website which is totally database
 driven?

try PEAR::Cache
http://pear.php.net

-- 
Wolfram

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Caching in php?

2002-02-06 Thread Jeff Bearer

There is Zend Cache, it expensive and you have to pay per processor.
That drove folks to develop APC (Alternitive PHP Cache) which is open
source. http://apc.communityconnect.com/

They take the PHP source and compile it into machine code and stores
that code, which saves porcessor overhead when the page is loaded again.

APC worked well for me, but that's not where my bottleneck is, mine is
with database access so I wanted to cache database queries.  I couldn't
find any application that did what I wanted so I wrote a class that
handles caching queries.  

In programming it I wanted it to be a transparent as possible and make
using it just like using the PEAR mysql module so I could add it to my
site with minor modifications.  

Here is a little on how it works.  It checks to see if the query is
cached, if not it queries the database.  It takes the data returned from
the query and stores it in a xml file, which I have on a RAM disk for
speed.  It returns a result object similiar to the result object from
the PEAR mysql stuff.  And that object has a FetchRow function just like
the mysql result object so it drops right into existing code.

It's new and I haven't truely tested it's proformance yet but if you are
interested in it. Let me know, I'm positive that people will be able to
improve the code in the class which would be cool.

 

On Wed, 2002-02-06 at 09:23, Erick Papadakis wrote:
 hello, 
 
 i used asp and it seems there is an application object
 which can help in caching of data. (e.g.,
 http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=142).
 
 
 is this possible using php? what can i do to use
 caching on my website which is totally database
 driven?
 
 thanks/erick
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php