summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-05-20 15:39:20 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-05-20 15:39:20 +1000
commite9a6b3fa58d1ec33bb20f83147643652074c3254 (patch)
tree403d30a7bf65c7c322876ba4a1f20d7637c75ad6 /inc
parentedd93c5652d210e8ad57f8f618926df6169f2c72 (diff)
don't cache stuff for mods, or the post controls will go away
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index d5d38235..97e2a802 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -602,7 +602,7 @@
while($th = $query->fetch()) {
$thread = new Thread($th['id'], $th['subject'], $th['email'], $th['name'], $th['trip'], $th['capcode'], $th['body'], $th['time'], $th['thumb'], $th['thumbwidth'], $th['thumbheight'], $th['file'], $th['filewidth'], $th['fileheight'], $th['filesize'], $th['filename'], $th['ip'], $th['sticky'], $th['locked'], $th['embed'], $mod ? '?/' : $config['root'], $mod);
- if($config['memcached']['enabled']) {
+ if($config['memcached']['enabled'] && !$mod) {
if($built = $memcached->get("theadindex_{$th['id']}")) {
$body .= $built;
continue;
@@ -638,7 +638,7 @@
$built = '<div id="thread_' . $thread->id . '">' . $thread->build(true) . '</div>';
- if($config['memcached']['enabled']) {
+ if($config['memcached']['enabled'] && !$mod) {
$memcached->set("theadindex_{$th['id']}", $built, time() + $config['memcached']['timeout']);
}