Closed Bug 576106 Opened 14 years ago Closed 10 years ago

[k] Make Tag models memcacheable

Categories

(support.mozilla.org :: Questions, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: erik, Unassigned)

Details

Perhaps use a proxy model. Putting this off till after the Summit in favor of more demo-able stuff.
Component: Forum → Questions
This turns into a serious dive into cache invalidation. Pushing out of 2.2. jsocol says the DB won't catch on fire.

Notes about how to resume implementation are at http://github.com/erikrose/kitsune/blob/576106-memcache-tags/apps/questions/tests/test_models.py#L183. In summary, Cache Machine doesn't yet support invalidation along many-to-many relationships, largely because the traffic to and from memcached can be immense. Also, it doesn't yet support invalidation along GenericForeignKeys (though that's easier to fix).
Target Milestone: 2.2 → 2.3
Sticking our flush lists in redis should make the many-to-many invalidation we need much more feasible.
Not related to KB => out of 2.3.
Target Milestone: 2.3 → ---
taggit 0.9 allows for custom Tag models and should thus make this more possible. http://alexgaynor.net/2010/sep/21/django-taggit-09-released/
Assignee: erik → nobody
P2 leads me to believe that this was considered quite high priority. Does it still make sense to cache these? Or can we close this bug?
Let's hold off until we implement the new IA and then make a call. We may reduce our usage of taggit or kill it altogether. It definitely isn't a P2 at the moment.
Priority: P2 → --
We do cache tags. we just dont use cache-machine.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.