Hot answers tagged

3 votes
Accepted

How do you deal with random class and cache?

One workaround to problems like this is using string placeholders. The basic idea is that instead of rendering the actual dynamic value inside {% cache %} tags, you can output a static string ...
user avatar
3 votes

How do you deal with random class and cache?

Randomness and caching are always gonna be at odds. Before you jump at complicated solutions, I'd have a talk about precise requirements, including mentioning the trade-offs involved. Do you really ...
user avatar
  • 6,340

Only top scored, non community-wiki answers of a minimum length are eligible