[Templates] Caching Output of Components

Randal L. Schwartz merlyn@stonehenge.com
11 Aug 2006 15:58:54 -0700


>>>>> "Buddy" == Buddy Burden <buddy@thinkgeek.com> writes:

Buddy> We take our templates that have such substitutions and turn them into
Buddy> "two pass" generation templates.  We use two different pairs of
Buddy> delimiters to distinguish between variables that can be substituted and
Buddy> then cached, and variables which must always be regenerated on every
Buddy> page load.  Then we run it through TT2 once, cache that, then run it
Buddy> through TT2 a second time before displaying.

That's precisely what I describe in
<http://www.stonehenge.com/merlyn/LinuxMag/col38.html>.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!