Pros and cons of page buffering.
Posted: Thu Jul 31, 2003 6:17 pm
This is basically one of those "is this a good idea" questions.
I'm playing around with a new method of developing my websites which uses the tried and tested method of including various data into the page(s) when needed.
Something I am thinking about doing is 'preloading' some of the more widely used pages/includes into a session when the session is first created, so that the 'preloading' only needs to be done once when the session first gets created.
For example let's say I have a news.php file which gets included into the page whenever someone goes to the news section.. and instead of using include() each time all I do is echo() the session variable which contains the 'preloaded' news.php code.
Has anyone tried this before, or does anyone have any valid pros/cons about this method of development?
Thanks in advance.
I'm playing around with a new method of developing my websites which uses the tried and tested method of including various data into the page(s) when needed.
Something I am thinking about doing is 'preloading' some of the more widely used pages/includes into a session when the session is first created, so that the 'preloading' only needs to be done once when the session first gets created.
For example let's say I have a news.php file which gets included into the page whenever someone goes to the news section.. and instead of using include() each time all I do is echo() the session variable which contains the 'preloaded' news.php code.
Has anyone tried this before, or does anyone have any valid pros/cons about this method of development?
Thanks in advance.