[EMAIL PROTECTED] wrote:
> 
> 
> On May 22, 12:11 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
>> I don't know if this is the "right" direction but I've had success using
>>   memcached to implement of the day items.
>>
>> If the item is in the cache it gets served.  Otherwise I fetch from
>> database and store in cache with expiration of 24 hours.
> 
> Definitely an interesting idea... do you use a template tag for the
> item? The {% cache %} template tag doesn't seem to want to cache my
> template tag.

I've used low-level api 
http://www.djangoproject.com/documentation/cache/#the-low-level-cache-api

And I'm caching context vars, but no reason can't be done in template 
tag.  Probably cleaner that way.


-- 
Norman J. Harman Jr.  512 912-5939
Technology Solutions Group, Austin American-Statesman
___________________________________________________________________________
Get out and about this spring with the Statesman! In print and online,
the Statesman has the area's Best Bets and recreation events.
Pick up your copy today or go to statesman.com 24/7.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to