tal cache: directive could support an age variable

Bug #586461 reported by Curtis Hovey
6
This bug affects 1 person
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="cache_age view/bugtask_cache_age"
      content="cache:private cache_age">
Where the view will return "10 minute" or "3 hour"

Gary Poster (gary)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → High
milestone: none → 10.06
assignee: nobody → Stuart Bishop (stub)
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in launchpad-foundations:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad-foundations:
milestone: 10.07 → 10.11
tags: added: qa-needstesting
removed: qa-ok
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.