LUN-1373: Change dbtemplates caching mechanism.
LUN-1373: Set cache timout to 7 days.
LUN-1373: Change cache invalidation for m2m sites.
LUN-1373: Restructure code.
LUN-1373: Get cache timeout from project settings if possible.
Fix typo
Revert "Fix typo"

This reverts commit 84464bef24255f495d2b3c2ee345983459a86803.
Revert "LUN-1373: Get cache timeout from project settings if possible."

This reverts commit 96d879b9999dd722323051228b98416a8d2d8b5d.
Merge pull request #7 from pbs/LUN-1373

Lun 1373