improve cache reliability and performance of the sweeper

This commit is contained in:
roberto@precise64
2012-04-07 21:08:42 +02:00
parent d193d5572f
commit 949a0c35d5
8 changed files with 45 additions and 12 deletions
+1 -1
View File
@@ -3138,7 +3138,7 @@ PyObject *py_uwsgi_cache_del(PyObject * self, PyObject * args) {
else if (uwsgi.cache_max_items) {
UWSGI_RELEASE_GIL
uwsgi_wlock(uwsgi.cache_lock);
if (uwsgi_cache_del(key, keylen)) {
if (uwsgi_cache_del(key, keylen, 0)) {
uwsgi_rwunlock(uwsgi.cache_lock);
UWSGI_GET_GIL
Py_INCREF(Py_None);