mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 18:15:56 +00:00
cache schema version better
This commit is contained in:
@@ -53,11 +53,9 @@ class RSSUtils {
|
||||
}
|
||||
|
||||
static function update_daemon_common($limit = null, $options = []) {
|
||||
$schema_version = get_schema_version();
|
||||
|
||||
if (!$limit) $limit = Config::get(Config::DAEMON_FEED_LIMIT);
|
||||
|
||||
if ($schema_version != SCHEMA_VERSION) {
|
||||
if (get_schema_version() != SCHEMA_VERSION) {
|
||||
die("Schema version is wrong, please upgrade the database.\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user