tal cache: directive could support an age variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Stuart Bishop |
Bug Description
I would like the tal cache directive to support an age variable that I can calculate instead of hard code into the template.
The milestone is a good example. We see a lot of timeouts related to large lists of bugs (many of which are private). In it's active state, a release manager may be changing the bugs and specs several times an hour. We want a low cache time for active milestones. When the milestone is inactive (complete or released), we do not expect the information to change, so we want a high cache time.
I think I want to do something like:
<tal:bugtasks
define=
content=
Where the view will return "10 minute" or "3 hour"
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 10.06 |
assignee: | nobody → Stuart Bishop (stub) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
Fixed in stable r11044 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 11044>.