2
votes
1answer
92 views

Does this function cache correctly?

I want to limit the load so I rewrite the most expensive method and add caching, both memcache and cache-control: class GeoRSS(webapp.RequestHandler): def get(self): start = ...
0
votes
1answer
138 views

Iteration and memcache for selected categorized random elements?

The following code is a quick implementation since I only needed 3 random images sorted by category (a random eyes image, a random nose image and a random mouth image and then combine them) ...