Until now I have been I have been using a single memcached instance for my 4 sites. On three of them I use a KEY_PREFIX
because the documentation implied that I need to do that. Everything has been fine but now I need to periodically purge the list view (like when I add an entry). I found an way to purge the the page and was reviewing how it works when I ran into CACHE_MIDDLEWARE_KEY_PREFIX
and now I'm confused.
It appears that KEY_PREFIX is never used except when you define manually a key then it's actually used. Is this a true statement? Specifically the documentation about using
KEY_PREFIX
appears to be inaccurate?It appears that I should do this in my settings file to make sure they are aligned but I don't want to duplicate the key (demo:demo:). Will this infact duplicate it?
KEY_PREFIX = CACHE_MIDDLEWARE_KEY_PREFIX = 'demo:'
I would really like to understand how these two mechanisms work. I'm starting to suspect that they really are different