include "rssfuncs.php";
// Update all feeds needing a update.
update_daemon_common(0, true, false);
+ housekeeping_common(false);
- // Update feedbrowser
- update_feedbrowser_cache();
-
- // Purge orphans and cleanup tags
- purge_orphans();
-
- cleanup_tags(14, 50000);
-
- global $pluginhost;
- $pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op);
+ PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op);
}
}
function login() {
- $_SESSION["prefs_cache"] = array();
-
if (!SINGLE_USER_MODE) {
$login = $this->dbh->escape_string($_POST["login"]);
if ($this->dbh->num_rows($result) != 0) {
$_SESSION["profile"] = $profile;
- $_SESSION["prefs_cache"] = array();
}
}
} else {
<?php
@$op = $_REQUEST["subop"];
- $updater = new DbUpdater(DB_TYPE, SCHEMA_VERSION);
+ $updater = new DbUpdater(Db::get(), DB_TYPE, SCHEMA_VERSION);
if ($op == "performupdate") {
if ($updater->isUpdateRequired()) {
} else {
- print "<h2>" . "Tiny Tiny RSS database is up to date." . "</h2>";
+ print_notice("Tiny Tiny RSS database is up to date.");
print "<p><form method=\"GET\" action=\"index.php\">
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">