mirror of
https://github.com/friendica/friendica
synced 2025-04-29 17:04:23 +02:00
Increase cache lifespan / clear cache upon changes
This commit is contained in:
parent
a880d8b982
commit
73019284ce
7 changed files with 46 additions and 13 deletions
|
@ -205,7 +205,7 @@ class Transmitter
|
|||
|
||||
if (!$show_contacts) {
|
||||
if (!empty($cachekey)) {
|
||||
DI::cache()->set($cachekey, $data, Duration::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $data, Duration::DAY);
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
@ -233,7 +233,7 @@ class Transmitter
|
|||
}
|
||||
|
||||
if (!empty($cachekey)) {
|
||||
DI::cache()->set($cachekey, $data, Duration::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $data, Duration::DAY);
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
@ -323,7 +323,7 @@ class Transmitter
|
|||
}
|
||||
|
||||
if (!empty($cachekey)) {
|
||||
DI::cache()->set($cachekey, $data, Duration::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $data, Duration::DAY);
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
@ -407,7 +407,7 @@ class Transmitter
|
|||
$data['orderedItems'] = $list;
|
||||
|
||||
if (!empty($cachekey)) {
|
||||
DI::cache()->set($cachekey, $data, Duration::QUARTER_HOUR);
|
||||
DI::cache()->set($cachekey, $data, Duration::DAY);
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue