]> gitweb.ps.run Git - ps-cgit/blobdiff - cache.c
Bump version.
[ps-cgit] / cache.c
diff --git a/cache.c b/cache.c
index 9e7eeb0668dab1e9cb9cee0b231c2de1eef134fb..801e63fd9d40c1525de5c18ca5adf61b5adbd220 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -343,7 +343,7 @@ int cache_process(int size, const char *path, const char *key, int ttl,
        int result;
 
        /* If the cache is disabled, just generate the content */
-       if (size <= 0) {
+       if (size <= 0 || ttl == 0) {
                fn();
                return 0;
        }