I have a site pulling in a php include and it is causing the page to load slowly. The include is a fair amount of data and I would like the page to load and then have the php include loads marginally after. Does this make sense? Is there a way to make it load faster?
I think you need to look at the projects from ZEND or PHPLens and some other people who have worked on ways to speed up loading of PHP pages. As I understand it, they compile the page and store that so that the next time it is called, they can call the compiled version, which should speed things up. To call the scripts in bits, you would need to look hard at it and see if it can be rewritten into smaller s parts which are only called if and when necessary. Thirdly, you should look at something the ADODB or ADOBD-Lite to speed iup the database part of the operration if there is a lot of database quesries involved. There is a good general dicssuion on php optimistzation at PHPLens
How much data is it pulling in? What sort of data is it? a php include is done when the page is requested so you can't do it afterwards.
Look at these articles: http://www.theukwebdesigncompany.com/articles/php-caching.php http://www.ilovejackdaniels.com/php/caching-output-in-php/ http://www.zend.com/zend/art/scriptcaching.php I haven't read those... I just found them using Google Thomas