mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:50:12 +00:00
Restructure Cache to follow new paradigm
This commit is contained in:
parent
6a85d09c59
commit
68046573a4
52 changed files with 103 additions and 71 deletions
|
@ -132,7 +132,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 (DI::lock()->acquire('dbupdate', 0, Cache\Duration::INFINITE)) {
|
||||
if (DI::lock()->acquire('dbupdate', 0, Cache\Enum\Duration::INFINITE)) {
|
||||
|
||||
Logger::notice('Update starting.', ['from' => $stored, 'to' => $current]);
|
||||
|
||||
|
@ -246,7 +246,7 @@ class Update
|
|||
// If the update fails or times-out completely you may need to
|
||||
// delete the config entry to try again.
|
||||
|
||||
if (DI::lock()->acquire('dbupdate_function', 120, Cache\Duration::INFINITE)) {
|
||||
if (DI::lock()->acquire('dbupdate_function', 120, Cache\Enum\Duration::INFINITE)) {
|
||||
|
||||
// call the specific update
|
||||
Logger::notice('Pre update function start.', ['function' => $funcname]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue