From e2cf81e21406f0b507446cf369f7da172ce9da14 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Apr 2013 14:54:59 +0400 Subject: unify houskeeping stuff, increase spawn interval --- classes/db.php | 4 ++++ classes/handler/public.php | 9 +-------- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'classes') diff --git a/classes/db.php b/classes/db.php index 9b800dc22..695ca6ea2 100644 --- a/classes/db.php +++ b/classes/db.php @@ -53,6 +53,10 @@ class Db implements IDb { return("'$str'"); } + function reconnect() { + $this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, defined('DB_PORT') ? DB_PORT : ""); + } + function connect($host, $user, $pass, $db, $port) { //return $this->adapter->connect($host, $user, $pass, $db, $port); return ; diff --git a/classes/handler/public.php b/classes/handler/public.php index 3b373edf5..0d9b04686 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -368,14 +368,7 @@ class Handler_Public extends Handler { include "rssfuncs.php"; // Update all feeds needing a update. update_daemon_common(0, true, false); - - // Update feedbrowser - update_feedbrowser_cache(); - - // Purge orphans and cleanup tags - purge_orphans(); - - cleanup_tags(14, 50000); + housekeeping_common(false); PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op); -- cgit v1.2.3-54-g00ecf