Re: Smarter cache

2005-11-30 Thread [EMAIL PROTECTED]
So, are you interested in PHP realization with main idea explained?

Caching Expression in Templates using a custom "Cache" Tag

2005-11-30 Thread Eric Baker
I wrote a custom tag that allows you to cache an expression in a template. I noticed, that my template was sending many duplicate queries to the database because I was using a method in my model that used a foreign key in a loop with many repeats. I could have recoded the view to generate all th

Re: Random Tag

2005-11-30 Thread Tom Tobin
On 11/29/05, Tom Tobin <[EMAIL PROTECTED]> wrote: > I'd be interested in feedback on ticket #919, which implements a > "random" tag which parallels the functionality of the random filter. I've split out a weighted random class, `RandWeight`, that lives in `django.utils.randweight`. I'm not certa

Extending admin interfaces

2005-11-30 Thread oggie rob
Hi, I've been modifying admin interfaces lately and I've found a few restrictions that we might be able to avoid. I think this could make the admin interfaces much more flexible. Why admin, you might ask, instead of just creating custom views? Well, if you look at how much you get for free, there

Re: Smarter cache

2005-11-30 Thread Nebojša Đorđević - nesh
On 29-11-2005, at 20:55, [EMAIL PROTECTED] wrote: What about smarter cache system? I mean update not only by time-out, but also by a DB change. In a news sites it will be especially usefull: content can update not only each 'xxx' minutes, but it can also update by content addition/edit/deletio

Re: Smarter cache

2005-11-30 Thread Petar Marić
+1 for SmartCache(tm) -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/

Re: Smarter cache

2005-11-30 Thread [EMAIL PROTECTED]
Idea is not in 'retouching' each and every page, but in marking the cache as 'dirty', so it will be regenerated on a new request. If old page (archive) will be never reached, why should we regenerate it? There is also such a thing, as dependancy: if, for example, I update the category name, and i