Only add file-based cache if Django >= 1.7.