fixed cache_update for lua

This commit is contained in:
Unbit
2013-03-07 13:23:24 +01:00
parent 650c251236
commit 8f7e5fc1bc
+2
View File
@@ -130,9 +130,11 @@ static int uwsgi_api_cache_update(lua_State *L) {
expires = lua_tonumber(L, 3);
}
uwsgi_wlock(uwsgi.caches->lock);
uwsgi_cache_set((char *)key, strlen(key), (char *)value,
(uint16_t) vallen, expires,
UWSGI_CACHE_FLAG_UPDATE);
uwsgi_rwunlock(uwsgi.caches->lock);
}