]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Fix cache algorithm loophole
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 1e084d4cb02f743d2b4c014ce69b9a8cacad491f..3b0994a775492f652359ff45f7342c7787f9dc44 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -56,9 +56,10 @@ extern void html_link_close(void);
 
 extern int cgit_read_config(const char *filename, configfn fn);
 
-extern int cache_lookup(struct cacheitem *item);
+extern void cache_prepare(struct cacheitem *item);
 extern int cache_lock(struct cacheitem *item);
 extern int cache_unlock(struct cacheitem *item);
+extern int cache_exist(struct cacheitem *item);
 extern int cache_expired(struct cacheitem *item);
 
 #endif /* CGIT_H */