cached include extension
| From: | Brian Huff | Date: | Tue, 11 Jun 2002 18:36:58 +0000 |
| Subject: | cached include extension | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14188@lists.php.net to get a copy of this message | ||
does anybody know of an extension to PHP that can do 'include' calls in a cached manner?
The problem is this - Im designing a site which will have a lot of dynamic assembly and delivery of chunks of php. Im concerned that a lot of this:
<? include 'my_header.html' ?>
<? include 'chunk_123.php' ?>
<? include 'chunk_456.php' ?>
<? include 'chunk_789.php' ?>
<? include 'my_footer.html' ?>
will cause a lot of file IO and slow down the site. Is there some mechanism already in place to load up a few megs of php code to an internal hashtable, and then pull out chunks on the final page to be evaluated?
--
Brian 'Bex' Huff
bex@stellent.com
Phone: 952-903-2023
Fax: 952-829-5424