summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-06 18:42:33 +0200
committerczaks <marcin@6irc.net>2016-05-07 02:16:54 +0200
commitdeef54fe13c181181b62f8e7e5ec8953e62a6f72 (patch)
treedf0fb76c3b5c301933f917206bc2f52405e1d6af
parentce9f9eec252c435bfc1a9d637ae23c5178f9c1e4 (diff)
introduce smart_build_helper
-rw-r--r--smart_build.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/smart_build.php b/smart_build.php
index 31d8110a..e287a31a 100644
--- a/smart_build.php
+++ b/smart_build.php
@@ -1,8 +1,8 @@
<?php
require_once("inc/functions.php");
-if (!$config['smart_build']) {
- die('You need to enable $config["smart_build"]');
+if (!$config['smart_build'] && !$config["smart_build_helper"]) {
+ die('You need to enable $config["smart_build"] or $config["smart_build_helper"]');
}
$config['smart_build'] = false; // Let's disable it, so we can build the page for real
@@ -44,7 +44,7 @@ function sb_thread($b, $thread, $slugcheck = false) { global $config; $thread =
$query->bindValue(':id', $thread);
if (!$query->execute() || !$query->fetch(PDO::FETCH_ASSOC) ) {
- Cache::set("thread_exists_".$b."_".$thread, "no");
+ Cache::set("thread_exists_".$b."_".$thread, "no", 3600);
return false;
}