homepage Welcome to WebmasterWorld Guest from 54.83.133.189
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Cache a php include page?
Is there a way to get the browser to cache the page?
hiccupsheadache




msg:4483252
 5:14 pm on Aug 9, 2012 (gmt 0)

Hi guys,

I have an almost static website - that is put together using php include statements.

I've been told by my host that the php code i'm using is causing memory problems (although i didnt even think "include" would use that much memory)

If my page looked like this:


<body>
<?php
include('header.php');
include('contents1.php');
include('footer.php');
?>
</body>


And the included files just contained html code, what is the best way to cache the complete page to stop the php code running each time?

Thanks for the help!

Cheers.

 

coopster




msg:4485232
 10:36 pm on Aug 15, 2012 (gmt 0)

There are lots of caching mechanisms and techniques (good read: [mnot.net...] )but I highly doubt this is an issue for you unless you have a programming logic loop running errant somewhere in the mix.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved