Reply to Re: Common template for HTML page?

Your name:

Reply:


Posted by Toby Inkster on 09/06/05 09:41

Alan J. Flavell wrote:
> Toby Inkster wrote:
>
>> My general technique is that each page looks like this:
>>
>> <?php
>> $title="My page";
>> include "inc_top.php";
>
> Have you thought about cacheability? ...

I think about it a lot, yes. But just because I *think* about it... ;-)

The biggest of the sites I maintain using this technique is far too
dynamic to even consider caching. Each page is customised for each
specific user; content is updated continuously; and there are a lot of web
applications that check on session data. I need to positively discourage
caching in this case.

It ain't too slow though, because I keep the HTML as lightweight as
possible; almost all the pages are under 5KB in size; other page elements
including CSS and images are cacheable.

Many of the other pages are simple static sites that have been built with
PHP purely for convenience. With these I generally develop them in PHP on
a testing server, but using ".html" file names; then I do a site crawl
with "wget" to create a static mirror of the site; I upload that,
and end up with a static site that is eminently cacheable.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация