summaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-04 20:58:57 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-04 20:58:57 +0200
commitf690c7dde14a6f9c5fbf04ed94170c7648591cb6 (patch)
tree6e63dac978af3864622d0a9f85dac07f24318930 /global.h
parent256e7837ce8cb30b0c0a8c73306abdffa80365a6 (diff)
downloadtapasboard-f690c7dde14a6f9c5fbf04ed94170c7648591cb6.tar.gz
tapasboard-f690c7dde14a6f9c5fbf04ed94170c7648591cb6.zip
store post position in database, create invisible items for unfetched
Diffstat (limited to 'global.h')
-rw-r--r--global.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/global.h b/global.h
index 694dce0..8c64a4c 100644
--- a/global.h
+++ b/global.h
@@ -18,6 +18,9 @@
/** Time we should consider other topics in a forum up to date, in seconds. */
#define FORUM_TOPICS_TLL 15 * 60
+/** Time we should keep topics in the cache, in days. */
+#define FORUM_TOPICS_CACHE 10
+
/** Number of topics per "block" in subforum view */
#define FORUM_PAGE_SIZE 20
@@ -30,6 +33,9 @@
/** Time we should consider other posts in a topic up to date, in seconds. */
#define TOPIC_POSTS_TLL 15 * 60
+/** Time we should keep topics in the cache, in days. */
+#define TOPIC_POSTS_CACHE 10
+
/** Number of posts per "block" in topic view */
#define TOPIC_PAGE_SIZE 20