memcache cache keys interact poorly with query parameters

Bug #634326 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Stuart Bishop

Bug Description

If you look at https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1713L718

You'll see cache keys like:
pt:lpnet:lp/bugs/templates/bugcomment-box.pt,9760:l:1,0:MTQ2,https_//bugs.launchpad.net/ubuntu/+bug/1/+index?comments=all2tsQZM75XQpmPvZYK8l1cB

These are for bug comments which are rendered the same way on bug index and on bugindex?comments=all

Is there a way for the template to say that the key should not contain this?

Related branches

Revision history for this message
Stuart Bishop (stub) wrote :

This sounds like a good idea, and simple enough at the Python end. We need to decide on the syntax for the TALES - we need to support our use cases without becoming unwieldy. I expect this will need an extra parameter - I don't think we can sanely overload any of the existing parameters.

Revision history for this message
Gary Poster (gary) wrote :

Stuart, I'm assuming this is a quick (day-ish or less) job. If I'm wrong, please let me know. Meanwhile, I'll put it in the backlog.

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
importance: Low → High
assignee: nobody → Stuart Bishop (stub)
Stuart Bishop (stub)
Changed in launchpad-foundations:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
milestone: none → 10.11
tags: added: qa-needstesting
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Stuart Bishop (stub)
tags: added: qa-untestable
removed: qa-needstesting
Revision history for this message
Robert Collins (lifeless) wrote :

Might be worth letting devs know how to use this improvement.

Changed in launchpad-foundations:
status: Fix Committed → Fix Released
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.