From 034a0a594d6820fc84469c97c035a30eea5e2b18 Mon Sep 17 00:00:00 2001 From: "roberto@natty32" Date: Thu, 7 Jul 2011 09:11:26 +0200 Subject: [PATCH] remove json from unbitstaff --- buildconf/unbitstaff.ini | 1 + plugins/cache/cache.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/buildconf/unbitstaff.ini b/buildconf/unbitstaff.ini index 42330cd8..375d7718 100644 --- a/buildconf/unbitstaff.ini +++ b/buildconf/unbitstaff.ini @@ -1,5 +1,6 @@ [uwsgi] inherit = unbit +json = false embedded_plugins = python bin_name = ../bin/uwsgi plugin_dir = ../bin/uwsgi_plugins diff --git a/plugins/cache/cache.c b/plugins/cache/cache.c index 67a6a2b8..687891aa 100644 --- a/plugins/cache/cache.c +++ b/plugins/cache/cache.c @@ -9,6 +9,9 @@ void cache_command(char *key, uint16_t keylen, char *val, uint16_t vallen, void if (!uwsgi_strncmp(key, keylen, "key", 3)) { val = uwsgi_cache_get(val, vallen, &tmp_vallen); if (val && tmp_vallen > 0) { +#ifdef UWSGI_DEBUG + uwsgi_log("cache value size: %llu\n", tmp_vallen); +#endif wsgi_req->response_size = wsgi_req->socket->proto_write(wsgi_req, val, tmp_vallen); }