summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-05-25 20:15:47 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-05-25 20:15:47 +1000
commit38cc13f9b9643edb468c2df13d6ae75672d0f73d (patch)
tree672fa29f4c3d4e6f23eeb0a127dc40a612d99608 /inc/display.php
parent4e49d08359d5cb82c03c0b1eeb2219981e9f140c (diff)
...
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php
index 7b711501..465b0e1f 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -260,11 +260,15 @@
}
public function build($index=false) {
- global $board, $config, $memcached;
+ global $board, $config, $memcached, $debug;
if(!$this->mod && $config['memcached']['enabled']) {
- if($built = $memcached->get($this->memcached_key($index)))
+ if($built = $memcached->get($this->memcached_key($index))) {
+ if($config['debug']) {
+ $debug['memcached'][] = $this->memcached_key($index);
+ }
return $built;
+ }
}
$built = '<div class="post reply" id="reply_' . $this->id . '">' .