]> git.mxchange.org Git - friendica.git/commitdiff
Renamed Cache flag
authorPhilipp Holzer <admin@philipp.info>
Mon, 29 Oct 2018 09:21:10 +0000 (10:21 +0100)
committerPhilipp Holzer <admin@philipp.info>
Wed, 31 Oct 2018 13:44:42 +0000 (14:44 +0100)
src/Core/Cache.php
src/Core/Update.php

index 0579ee0c8dcd1edd75b3ac70cc52a2b2b8762114..e7277fd702cac3e30520d5c9aa4e91677b953f6a 100644 (file)
@@ -19,7 +19,7 @@ class Cache extends \Friendica\BaseObject
        const QUARTER_HOUR = 900;
        const FIVE_MINUTES = 300;
        const MINUTE       = 60;
-       const NEVER        = 0;
+       const INFINITE     = 0;
 
        /**
         * @var Cache\ICacheDriver
index 4dc727b155544fb53145cda55c0618eb39013405..557d854c8c606d4d78c655b447a00cac81a65db3 100644 (file)
@@ -71,7 +71,7 @@ class Update
 
                                // Compare the current structure with the defined structure
                                // If the Lock is acquired, never release it automatically to avoid double updates
-                               if (Lock::acquire('dbupdate', 120, Cache::NEVER)) {
+                               if (Lock::acquire('dbupdate', 120, Cache::INFINITE)) {
 
                                        // run the pre_update_nnnn functions in update.php
                                        for ($x = $stored + 1; $x <= $current; $x++) {
@@ -90,7 +90,6 @@ class Update
                                                                $retval
                                                        );
                                                }
-                                               Lock::release('dbcheck');
                                                Lock::release('dbupdate');
                                                return $retval;
                                        } else {
@@ -138,7 +137,7 @@ class Update
                        // If the update fails or times-out completely you may need to
                        // delete the config entry to try again.
 
-                       if (Lock::acquire('dbupdate_function', 120,Cache::NEVER)) {
+                       if (Lock::acquire('dbupdate_function', 120,Cache::INFINITE)) {
 
                                // call the specific update
                                $retval = $funcname();
@@ -241,7 +240,7 @@ class Update
                                L10n::pushLang($lang);
 
                                $preamble = deindent(L10n::t("
-                                       The friendica database was successfully update from %s to %s.",
+                                       The friendica database was successfully updated from %s to %s.",
                                        $from_build, $to_build));
 
                                notification([