homepage Welcome to WebmasterWorld Guest from 54.166.53.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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#: 4483250 posted 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

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4483250 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved