Hacker News new | ask | show | jobs
by nprateem 584 days ago
It'd be faster to retrieve from a cache than to make a round-trip to a DB to get the data needed for templating.
2 comments

My point was that you shouldn't be doing DB queries in the template. If you're doing the DB queries before templating then you should also be doing the cache queries before templating too.
[assumption]