bwarren2 / datadrivendota

Codebase for dota analytics
Other
0 stars 0 forks source link

Switch off cache in local dev with env variable. #502

Closed wlonk closed 9 years ago

wlonk commented 9 years ago

If CACHE_ENABLED not set to 'True', cache will be set to DummyCache.

Closes #494.

cute bats

bwarren2 commented 9 years ago

Could we do this in production, or figure out how to flush the cache in production? This would be useful if I want to make edits (ex to a blog post that just went public) or to debug a change.

wlonk commented 9 years ago

I am hesitant to do that; flushing the cache is much much much better than actually changing how the running app connects to a cache. You shouldn't require production pushes for things like cache resets.

bwarren2 commented 9 years ago

How does one flush the cache in production? On Nov 8, 2015 3:34 PM, "Kit La Touche" notifications@github.com wrote:

I am hesitant to do that; flushing the cache is much much much better than actually changing how the running app connects to a cache. You shouldn't require production pushes for things like cache resets.

— Reply to this email directly or view it on GitHub https://github.com/bwarren2/datadrivendota/pull/502#issuecomment-154868385 .

wlonk commented 9 years ago

You can flush it by going to the addons for DDD, clicking on Memcachier and getting to the control panel for it, then clicking "flush cache". There may also be a CLI way, I don't know.

bwarren2 commented 9 years ago

LGTM!