Zinor

  • Announcement
Zinor has not posted any announcements.
  • My Activity

Fri, Sep 19 2008
NewBlogComment Zinor commented on Prodigal's blog post about Testing.
NewBlogComment Zinor commented on Prodigal's blog post about Drop rates suck.
NewBlogComment Zinor commented on Prodigal's blog post about Avatar...Son of the Riddler.
NewBlogComment Zinor commented on Prodigal's blog post about Django CacheManager.
NewBlogComment Zinor commented on Prodigal's blog post about Account Fixes.
NewBlogComment Zinor commented on Prodigal's blog post about Hotfixes Incoming.
NewBlogComment Zinor commented on Prodigal's blog post about Downloads and Login Revamp.
NewBlogComment Zinor commented on Prodigal's blog post about Wrath of the Lich King.
NewBlogComment Zinor commented on Prodigal's blog post about A Wii Little Accident! - #1.
NewBlogComment Zinor commented on Prodigal's blog post about Project Hydra - The Art of Codenames.
NewBlogComment Zinor commented on Prodigal's blog post about TDQ Competiton #1 - TDQ Banner and Logo!.
NewBlogComment Zinor commented on Prodigal's blog post about What Do You Listen To?.
NewBlogComment Zinor commented on Prodigal's blog post about TDQ Banner and Avatar Competition Winner!.
NewBlogComment Zinor commented on Prodigal's blog post about Do you remember when....
NewBlogComment Zinor commented on Prodigal's blog post about Top 5 MMOGs to try this Christmas.
  • Blogs
  • Django CacheManager

    [Curse Development] Posted Sep 19, 2008 5 Comments

    We have been working on some optimizations on the backend lately, and one thing discussed was a new approach at handling caching. Django offers several, none of which satisfy what a heavy database site needs, and calling cache.get() everywhere is just tiresome, and ends up with data duplication. Today we came up with our tentative alternative, CacheManager. from django.db.models.manager import Manager from django.db.models.query import QuerySet from django.core.cache import cache DEFAULT_CACHE_TIME = 15 * 60 # 15 minutes # TODO # - Come up with a better method for invalidation # - Add invalidation for count() when a queryset is invalidated # - Find a way to make AutoCacheManager override `objects` in models # - Add some handling to allow CacheManager to react differently based on query type (get, count, filter, select_related) # CacheManager -- A manager to store and retrieve cached objects using CACHE_BACKEND # (Optional) <string key_prefix> -- the key prefix for all cached objects...

  • cgProfiler Update 0
  • Favorites and Alerts 0
  • Django Patch: .group_by() 0
  • Category Changes 0
  • My Comments
    No one has commented on Zinor.
  • Profile
Author

Zinor

Member Since: 5/19/2006
Sex: Male
Location: San Francisco
  • Zinor's Projects
    Zinor is not the author of any projects.
  • My Friends
No users have been added to Zinor's friends list.