[OFBiz] Users - Caching pages from Freemarker

David Jones jonesde at ofbiz.org
Wed Aug 4 14:56:55 EDT 2004


Generally we don't do this because even on something as seemingly 
simple as a category listing there are a LOT of things that can vary 
per customer. In general with very dynamic sites, which ecommerce sites 
usually are, this approach is taken.

On the performance side, if a two processor Intel based server can do 
20-40 pages per second that is enough for most sites, and most sites 
that need to handle more traffic can usually afford to add a server or 
two to ensure good response times. However, if all of your products 
cost less than $5.00, maybe having less flexibility makes sense... Just 
be careful not to cache anything globally that has per-user 
information, like prices and such, or side bar things like the cart, 
recently viewed lists, quick reorder list, etc, etc.

-David


On Aug 4, 2004, at 12:28 PM, Alfred Lopez wrote:

> BJ,
>
> Thanks for the response. I did look through the mailling list and found
> what I already suspected: FTL's are cached but not the *result* of the 
> FTL
> (at least to my understanding; maybe I'm wrong).
>
> What I want to do is the following: I want to produce a page with, 
> say, a
> list of products/listings from the database. That page would not change
> often because the products infrequently change (and may have many 
> items on
> it) so instead of doing a [cache] lookup for my products and a [cache]
> lookup for my FTL template then merging them, why not do a lookup for a
> [cached] page?
>
> It was suggested to me to use OSCache to do this, but I wanted to find 
> out
> if Ofbiz did this inherently before wasting my time in implementing
> *another* caching mechanism.
>
>
> Thanks again.
>
>> so a search on the dev mailing list.
>> lot of discussion about caching.
>>
>> -----Original Message-----
>> From: Alfred Lopez [mailto:alfred.lopez at gmx.net]
>> Sent: Tuesday, August 03, 2004 1:29 PM
>> To: users at ofbiz.dev.java.net
>> Subject: [OFBiz] Users - Caching pages from Freemarker
>>
>>
>> Hi all,
>>
>> Has anyone here used (or tried using) something like OSCache (I know:
>> taboo) to cache the resulting pages from FreeMarker et al? Thanks.
>>
>> -- 
>> Alfred Lopez
>> alfred.lopez at gmx.net
>> AIM Screen name: AlfredDGr8
>> MSN: human_drone at hotmail.com
>>
>> NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
>> GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
>> For additional commands, e-mail: users-help at ofbiz.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
>> For additional commands, e-mail: users-help at ofbiz.dev.java.net
>>
>
> -- 
> Alfred Lopez
> alfred.lopez at gmx.net
> (954) 435-1478 (home)
> (954) 629-6896 (cell)
> AIM Screen name: AlfredDGr8
>
> NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
> GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
> For additional commands, e-mail: users-help at ofbiz.dev.java.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
Url : http://lists.ofbiz.org/pipermail/users/attachments/20040804/e155b3d6/smime.bin


More information about the Users mailing list