app/soc/cache/home.py
changeset 2160 3f9dd37d98a8
parent 1600 0aa3de1b2acc
child 2365 a66e1dd8ced7
equal deleted inserted replaced
2159:a1f1eaaf458b 2160:3f9dd37d98a8
    33 
    33 
    34 def key(entity):
    34 def key(entity):
    35   """Returns the memcache key for the user's sidebar.
    35   """Returns the memcache key for the user's sidebar.
    36   """
    36   """
    37 
    37 
    38   return 'homepage_for_%s_%s' % (entity.kind(), entity.key().name())
    38   return 'homepage_for_%s_%s' % (entity.kind(), entity.key().id_or_name())
    39 
    39 
    40 
    40 
    41 def get(self, *args, **kwargs):
    41 def get(self, *args, **kwargs):
    42   """Retrieves the sidebar for the specified user from the memcache.
    42   """Retrieves the sidebar for the specified user from the memcache.
    43   """
    43   """