diff options
author | Andrew Dolgov <[email protected]> | 2013-04-24 14:54:59 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-24 14:54:59 +0400 |
commit | e2cf81e21406f0b507446cf369f7da172ce9da14 (patch) | |
tree | 6c00059871b892a30c02d17336f7ed9cf268cb1c /classes | |
parent | 654650857ffc3e4914c9655528e1037939f75f54 (diff) |
unify houskeeping stuff, increase spawn interval
Diffstat (limited to 'classes')
-rw-r--r-- | classes/db.php | 4 | ||||
-rw-r--r-- | classes/handler/public.php | 9 |
2 files changed, 5 insertions, 8 deletions
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); |