mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Seperate birthday cache by language
This commit is contained in:
parent
460206a208
commit
d201dc9fd9
@ -1726,7 +1726,7 @@ class Contacts extends Contacts\Storage
|
||||
*/
|
||||
public function read_birthdays($addressbook, $year)
|
||||
{
|
||||
if (($birthdays = Cache::getInstance(__CLASS__,"birthday-$year-$addressbook")) !== null)
|
||||
if (($birthdays = Cache::getInstance(__CLASS__,"birthday-$year-$addressbook-".$GLOBALS['egw_info']['user']['preferences']['common']['lang'])) !== null)
|
||||
{
|
||||
return $birthdays;
|
||||
}
|
||||
@ -1774,7 +1774,7 @@ class Contacts extends Contacts\Storage
|
||||
);
|
||||
}
|
||||
}
|
||||
Cache::setInstance(__CLASS__,"birthday-$year-$addressbook", $birthdays, self::BIRTHDAY_CACHE_TIME);
|
||||
Cache::setInstance(__CLASS__,"birthday-$year-$addressbook-".$GLOBALS['egw_info']['user']['preferences']['common']['lang'], $birthdays, self::BIRTHDAY_CACHE_TIME);
|
||||
return $birthdays;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user