From: Joby W. <joby@u.washington.edu> - 2005-05-03 16:03:42
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You can also use a file based cache on tmpfs. The link below is a great article on the basics of using tmpfs. http://www-106.ibm.com/developerworks/library/l-fs3.html You could even put an SQLite database on tmpfs, to get better performance. Joby Walker ITI SSG, University of Washington - -- PGP key: https://staff.washington.edu/joby/joby-u-pub.asc Dan Frankowski wrote: > 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 > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCd6DRgA0gpghkf88RAt2bAKDCNZqcu72yeUuNd2i1+KSNX6r9EACdEsgC 0u68wnvtQJnpI1eqCJ7pSwM= =deOK -----END PGP SIGNATURE----- |