From: jordan Date: Mon, 2 Apr 2012 20:05:13 +0000 (+0000) Subject: OSQA-824: Enable Django template caching X-Git-Tag: live~79 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/e1f1231936ab7f94bdfd1769b95a10e3460e1603?hp=e1f1231936ab7f94bdfd1769b95a10e3460e1603 OSQA-824: Enable Django template caching Django loads and parses templates for every request, so this significantly improves OSQA performance. * I've checked over the custom template tags for thread safety and they look fine, so this change should be safe: https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#template-tag-thread-safety * Profiling indicated the other major contributor to CPU/request time was Django's lack of database connection pooling/persistent connections. That's best handled with an external daemon: http://meta.osqa.net/questions/11381/is-osqa-cpu-bound git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1238 0cfe37f9-358a-4d5e-be75-b63607b5c754 ---