ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

Template-caching: YAY or NAY? #116

Open ndarville opened 11 years ago

ndarville commented 11 years ago
  1. Benchmark
  2. (Sparse) documentation
  3. Basic info
  4. More basic info
ndarville commented 11 years ago

nick bruun recommends doing it on production deploy with a conditional flag, so it doesn’t happen on DEBUG.

ndarville commented 11 years ago

Further template optimization discussion in this presentation, touting:

  1. Using Jinja2 for your templates (using Coffin)
  2. Disabling escaping—and relying on C-level implementations—whenever possible

More Jinja2 info:

ndarville commented 11 years ago