On 27-Jul-2000 Jauder Ho wrote:
> 
> No. The problem is that you cannot cache the subsequent page that is
> generated because of the dynamic component. The template is always going
> to remain the same (interface changes should be rare for a stable web
> site), but the content (say news headlines or personalized component) is
> going to be dynamic. It is not reasonable to expect to cache that entire
> page. So what I am saying is that using HTML for such purposes is
> fundamentally broken unless we can figure out to tag a region of an html
> file as non-cachable i.e. dynamic. 

All the HTML is chached. Are you saying you want to cache everything including
the output of dynamic components? If so, then just stick squid in front of your
server.
 
> And as I replied to another reply about this, embedding code in a HTML
> file strikes me as an inelegant solution plus it leads to all sorts of
> problems such as html "designers" that delete tags for whatever reason. I
> know that the correct solution is to lart them but we can't always do that
> no matter how much we would like to :).

If you've got designers deleting tags then you need to educate them or fire
them. You cannot be flexible on that issue. Also, embedding code in HTML is no
different then putting arbitrary tags that some of the "templating" solutions
use. 

My last job was with Tivoli Systems and I used HTML::Embperl with great success
in several applications including ones that involved "designers" going in and
modifying pages with embedded perl code.

> On Thu, 27 Jul 2000 [EMAIL PROTECTED] wrote:
> 
>> > I could go off about why HTML sucks for dynamic page caching. If there was
>> > somehow a way to cache say the template, leaving only the same dynamic
>> > portion uncached, it would certainly help things along quite a bit. If
>> > anyone knows of a good way of doing this I would certainly be interested
>> > in hearing it. 
>> 
>> There is. Use HTML::Embperl.
>> 
>> I've been using it for several years now. I build objects for accessing any
>> data I need and then do simple things in my templates like:
>> 
>> <H2>[+ $forum->title +]</H2>
>> 
>> -- 
>> Jason Bodnar + [EMAIL PROTECTED] + Team Linux
>> 
>> If it'll make you feel any better, I've learned that life is one crushing
>> defeat after another until you just wish Flanders was dead.
>> 
>>                 -- Homer Simpson
>>                    Homer and Apu
>> 
>> 

-- 
Jason Bodnar + [EMAIL PROTECTED] + Team Linux

Yeah, Moe, that team sure did suck last night!  They just plain
sucked!  I've seen teams suck before, but they were the suckiest bunch 
of sucks that ever sucked!

                -- Homer Simpson
                   Team Homer

Reply via email to