export cache and queue functions only if available

This commit is contained in:
roberto@mrspurr
2011-08-20 11:12:32 +02:00
parent 87e8f118d3
commit 6d5fb3b252
+6 -2
View File
@@ -673,9 +673,13 @@ void init_uwsgi_embedded_module() {
init_uwsgi_module_sharedarea(new_uwsgi_module);
}
init_uwsgi_module_cache(new_uwsgi_module);
if (uwsgi.cache_max_items > 0) {
init_uwsgi_module_cache(new_uwsgi_module);
}
init_uwsgi_module_queue(new_uwsgi_module);
if (uwsgi.queue_size > 0) {
init_uwsgi_module_queue(new_uwsgi_module);
}
if (up.extension) {
up.extension();