diff --git a/README.md b/README.md index 7018cdc8..dc84fee8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ A lot of the static pages (claim.html, boards.html, index.html) need to be regen ```cron */10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php -*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php > /srv/http/claim.html +*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php */20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");' */5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php ``` diff --git a/claim.php b/claim.php index 456c8a32..11625e85 100644 --- a/claim.php +++ b/claim.php @@ -58,4 +58,4 @@ foreach($boards as $board) { } } $body = Element("8chan/claim.html", array("config" => $config, "delete" => $delete)); -echo Element("page.html", array("config" => $config, "body" => $body, "title" => _("Claim"), "subtitle" => _("Take deserted boards back from their owners"))); +file_write("claim.html", Element("page.html", array("config" => $config, "body" => $body, "title" => _("Claim"), "subtitle" => _("Take deserted boards back from their owners"))));