NYCPHP Meetup

NYPHP.org

[nycphp-talk] caching pages

Joel De Gan joel at tagword.com
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..
http://lucifer.intercosmos.net/?view=SNIP&item=120
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.

cheers
-joel

On Mon, 2005-04-04 at 17:55, Rahmin Pavlovic wrote:
> On Mon, 4 Apr 2005 16:45 , Rahmin Pavlovic <rahmin at insite-out.com> 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.inc');
> $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
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
> 





More information about the talk mailing list