Renamed Cache flag
This commit is contained in:
parent
270e817954
commit
9690dfc54e
|
@ -19,7 +19,7 @@ class Cache extends \Friendica\BaseObject
|
||||||
const QUARTER_HOUR = 900;
|
const QUARTER_HOUR = 900;
|
||||||
const FIVE_MINUTES = 300;
|
const FIVE_MINUTES = 300;
|
||||||
const MINUTE = 60;
|
const MINUTE = 60;
|
||||||
const NEVER = 0;
|
const INFINITE = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Cache\ICacheDriver
|
* @var Cache\ICacheDriver
|
||||||
|
|
|
@ -71,7 +71,7 @@ class Update
|
||||||
|
|
||||||
// Compare the current structure with the defined structure
|
// Compare the current structure with the defined structure
|
||||||
// If the Lock is acquired, never release it automatically to avoid double updates
|
// 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
|
// run the pre_update_nnnn functions in update.php
|
||||||
for ($x = $stored + 1; $x <= $current; $x++) {
|
for ($x = $stored + 1; $x <= $current; $x++) {
|
||||||
|
@ -90,7 +90,6 @@ class Update
|
||||||
$retval
|
$retval
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Lock::release('dbcheck');
|
|
||||||
Lock::release('dbupdate');
|
Lock::release('dbupdate');
|
||||||
return $retval;
|
return $retval;
|
||||||
} else {
|
} else {
|
||||||
|
@ -138,7 +137,7 @@ class Update
|
||||||
// If the update fails or times-out completely you may need to
|
// If the update fails or times-out completely you may need to
|
||||||
// delete the config entry to try again.
|
// 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
|
// call the specific update
|
||||||
$retval = $funcname();
|
$retval = $funcname();
|
||||||
|
@ -241,7 +240,7 @@ class Update
|
||||||
L10n::pushLang($lang);
|
L10n::pushLang($lang);
|
||||||
|
|
||||||
$preamble = deindent(L10n::t("
|
$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));
|
$from_build, $to_build));
|
||||||
|
|
||||||
notification([
|
notification([
|
||||||
|
|
Loading…
Reference in a new issue