Posted over 9 years ago. Visible to the public.

Caching: don't use content_for, it won't work

Do not use content_for inside a cached view fragment. It won't work because Memcache will just output whatever is in the cache, and not execute such commands.

Owner of this card:

Dragos Miron
Last edit:
over 9 years ago
cache, caching, content_for, memcache, views
Posted by Dragos Miron to HouseTrip Deck
This website uses short-lived cookies to improve usability.
Accept or learn more