Hello Again,
I've recently implemented the uWSGI cache as the caching solution for
my django project and I must thank you! It's blazingly fast.
However, I came across a slight issue that needs attention. The
django cache middleware example that is posted on the website is not
completely functional as-is. I think this is due to a bug in uWSGI.
the "set" method does not update cache entries that are already
stored. It acts like the "add" method.
Original (not working):
def set(self, key, value, timeout=0):
self._cache.cache_set(smart_str(key), pickle.dumps(value),
timeout, self._server)
Modified (working):
def set(self, key, value, timeout=0):
self.delete(key)
self._cache.cache_set(smart_str(key), pickle.dumps(value),
timeout, self._server)
I assume this is some sort of bug that has crept in from somewhere,
but if it is possibly my fault somehow, please inform me of how to
resolve this gracefully if this is not the most elegant solution.
Thanks again!
Ryan-
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi