Forum Moderators: coopster

Message Too Old, No Replies

php caching with phpsuexec

         

madmatt69

6:44 pm on Nov 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey all,

I'm looking at installing some sort of php caching system, but can't seem to find any that play nice with phpsuexec installed.

Can anyone suggest one that might work with this?

I've looked at xcache, mmcache, zend, etc and none seem to work.

PHP_Chimp

8:12 pm on Nov 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cant you just make your own using ob_start [uk2.php.net] and co?

madmatt69

11:08 pm on Nov 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for that - when I did a google search to find out about some other caching methods I came across a very simple one, for my purposes.

Basically it executes the php file and saves the output to an html file. Then in my site, I just include that html file, and the php is executed every 15 minutes.

Perfect for the few database queries I need to run!

seanpecor

11:16 pm on Nov 10, 2007 (gmt 0)

10+ Year Member



Nice and simple solution for a simple problem!

I rolled my own as PHP_Chimp suggested. I have geographic industry niche resource guides and in line with my overly obsessive pathos, I developed a simple get/put cache library. My cache operates with page chunks. In other words, there are certain chunks that change daily (or hourly) while other chunks might change weekly (or monthly). This allows me to maximize my cache hits while ensuring fresh content. It reduces Mysql query loads substantially, particularly with respect to search engine spiders who roll through my sites constantly.

Sean