[nycphp-talk] caching pages

Joel De Gan joel at
Mon Apr 4 20:01:59 EDT 2005

If you really felt like going crazy and are running an ad server or
something, I wrote a shared memory caching engine in php..
That is the old version as all new enhancements were for my work...

A modified version of this code is used on the registrar I work for and
processes a few million hits per day.


On Mon, 2005-04-04 at 17:55, Rahmin Pavlovic wrote:
> On Mon, 4 Apr 2005 16:45 , Rahmin Pavlovic <rahmin at> sent:
> >Do you know if it's possible to cache the PHP template, or do I have to save a
> >flat version of it then cache that?
> >
> I think I got it:
> ob_start();
> include('');
> $template_file=ob_get_contents();
> $cache_obj->save($template_file);
> ob_end_flush();
> Thanks for all the help, everybody
> -R
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP

More information about the talk mailing list