[additional information]
I asked for a way to disable caching site-wide. This is probably overkill, because all I need is a way to be able to see the most recent version of a page, when either the database or the program to generate it has been modified.
There is a strong consensus that modifying settings at runtime is a very bad idea.
So, some ideas: clearing the cache could work, as would sending a flag to specify that I don't want to see a cached version, or specifying that requests from my IP address shouldn't see cached pages.
[original question]
I have a Django-based website at ozake.com, and I frequently rewrite parts of the programming or change page content.
Each time I work on it, I modify settings.py to disable caching so I can see my modifications in real time.
When I'm done, I re-enable caching.
I am using file-based caching. Here is the relevant part of settings.py:
CACHES = {
'default': {'BACKEND':
#'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/var/www/mysite.com/cache',
When I work on the site I comment out the last two lines and uncomment the dummy cache line.
This means SSH'ing into the site, modifying settings.py, working on the site, then re-modifying it.
Is there any way I can make this into a check box somewhere in /admin with admin.py?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)