logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: PHP persistent caching: msg#00001

Subject: RE: PHP persistent caching
Dan,

My understanding is that, to avoid potential memory (and other resource) leaks 
taking down the webserver, there has been a conscious
design decision to implement php as not keeping any memory context between http 
requests. I understand that there are ways around
this but they are not straightforward.

Regards,
Charles

> -----Original Message-----
> From: Dan Frankowski [mailto:dfrankow@xxxxxxxxxx]
> Sent: 03 May 2005 22:08
> To: 'phpwiki-talk@xxxxxxxxxxxxxxxxxxxxx'
> Subject: [Phpwiki-talk] PHP persistent caching
> 
> Folks,
> 
> I have a question for experienced PHP developers. There is a lot of
> information I can imagine wanting to cache across sessions in PHP. For
> example in WikiLens, a ratings database, or per-item statistics (#
> ratings, averages, etc). This is stuff that will fit in-memory for the
> forseeable future.
> 
> What's the best way to do that in PHP? I've looked at a couple of PEAR
> modules (e.g., "Cache" included in PhpWiki), and they seem to be
> file-based. This is astonishing to me. Clearly memory can be 1000 times
> faster than disk (although there are usually memory-based disk caches,
> too). Is it really best to use file-based caches? I thought about
> writing a shared memory-based cache, and a colleague warned me away from
> it, saying shared memory access in PHP is iffy.
> 
> Thoughts?
> 
> Dan




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>