Is there any difference between staticgenerator and useing Django's CACHE_BACKEND on the filesystem eg. CACHE_BACKEND = 'file:///var/tmp/django_cache' ?
Is there any difference between staticgenerator and useing Django's CACHE_BACKEND on the filesystem eg. CACHE_BACKEND = 'file:///var/tmp/django_cache' ?
Yes.
StaticGeneratorgenerates static HTML files to bypass Django entirely.Any caching that django does such as the filesystem cache is still processed by django. A lot of the overhead of running your app is still there: django processes a request, goes through middlewares, checks filesystem cache for content, etc.
With StaticGenerator (and their example),
nginxis serving theindex.htmlpage if it exists and if it doesn't, passes the request on to django on apache.The idea is to have
nginxblissfully serving some html file thatStaticGeneratorupdates on state changes (like saving a model).