Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 38) sorted by relevance

12

/webtrees/app/
H A DCache.php32 private CacheInterface $cache; variable in Fisharebest\\Webtrees\\Cache
35 * @param CacheInterface $cache
37 public function __construct(CacheInterface $cache) argument
39 $this->cache = $cache;
55 … return $this->cache->get(md5($key), static function (ItemInterface $item) use ($closure, $ttl) {
69 $this->cache->delete(md5($key));
H A DIndividual.php148 static $cache = null;
152 if (!$cache) {
153 $cache = [
160 $cache[1][] = $family;
174 if (array_key_exists($n, $cache)) {
176 if ($n % 2 === 0 && in_array($target, $cache[$n], true)) {
181 $cache[$n] = [];
184 foreach ($cache[$n - 1] as $family) {
188 … if ($individual instanceof self && !in_array($individual, $cache[$n - 2], true)) {
189 $cache[$n][] = $individual;
[all …]
H A DPlaceLocation.php81 … return Registry::cache()->array()->remember('location-' . $this->location_name, function () {
144 return Registry::cache()->array()->remember('location-details-' . $this->id(), function () {
H A DPlace.php116 return Registry::cache()->array()->remember('place-' . $this->place_name, function (): int {
/webtrees/app/Module/
H A DModuleMapAutocompleteTrait.php56 $cache = Registry::cache()->file();
60 return $cache->remember($key, function () use ($place) {
78 $cache->remember($key, fn () => [], 3600);
H A DModuleMapGeoLocationTrait.php66 $cache = Registry::cache()->file();
69 return $cache->remember($key, function () use ($place) {
H A DAbstractModule.php82 $settings = Registry::cache()->array()
217 $access_levels = Registry::cache()->array()
H A DSiteMapModule.php193 $content = Registry::cache()->file()->remember('sitemap.xml', function (): string {
286 …$content = Registry::cache()->file()->remember($cache_key, function () use ($tree, $type, $page): …
H A DMediaTabModule.php127 …return Registry::cache()->array()->remember(self::class . ':' . __METHOD__, static function () use…
H A DModuleCustomTrait.php97 …return Registry::cache()->file()->remember($this->name() . '-latest-version', function (): string {
/webtrees/
H A Dcomposer.lock1293 "psr/simple-cache": "^1.0|^2.0|^3.0"
2772 "name": "psr/cache",
2776 "url": "https://github.com/php-fig/cache.git",
2781 …"url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253b…
2811 "cache",
2816 "source": "https://github.com/php-fig/cache/tree/3.0.0"
3290 "name": "psr/simple-cache",
3294 "url": "https://github.com/php-fig/simple-cache.git",
3299 …"url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d…
3329 "cache",
[all …]
/webtrees/app/Factories/
H A DAbstractGedcomRecordFactory.php49 return Registry::cache()
H A DHeaderFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DIndividualFactory.php49 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DNoteFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DSubmitterFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DSharedNoteFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DSubmissionFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DMediaFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DSourceFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DLocationFactory.php43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DRepositoryFactory.php44 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
H A DFamilyFactory.php50 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
/webtrees/tests/app/
H A DDefaultUserTest.php41 Registry::cache($cache_factory);
H A DUserTest.php42 Registry::cache($cache_factory);

12