/webtrees/app/ |
H A D | Cache.php | 32 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 D | Individual.php | 148 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 D | PlaceLocation.php | 81 … return Registry::cache()->array()->remember('location-' . $this->location_name, function () { 144 return Registry::cache()->array()->remember('location-details-' . $this->id(), function () {
|
H A D | Place.php | 116 return Registry::cache()->array()->remember('place-' . $this->place_name, function (): int {
|
/webtrees/app/Module/ |
H A D | ModuleMapAutocompleteTrait.php | 56 $cache = Registry::cache()->file(); 60 return $cache->remember($key, function () use ($place) { 78 $cache->remember($key, fn () => [], 3600);
|
H A D | ModuleMapGeoLocationTrait.php | 66 $cache = Registry::cache()->file(); 69 return $cache->remember($key, function () use ($place) {
|
H A D | AbstractModule.php | 82 $settings = Registry::cache()->array() 217 $access_levels = Registry::cache()->array()
|
H A D | SiteMapModule.php | 193 $content = Registry::cache()->file()->remember('sitemap.xml', function (): string { 286 …$content = Registry::cache()->file()->remember($cache_key, function () use ($tree, $type, $page): …
|
H A D | MediaTabModule.php | 127 …return Registry::cache()->array()->remember(self::class . ':' . __METHOD__, static function () use…
|
H A D | ModuleCustomTrait.php | 97 …return Registry::cache()->file()->remember($this->name() . '-latest-version', function (): string {
|
/webtrees/ |
H A D | composer.lock | 1293 "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 D | AbstractGedcomRecordFactory.php | 49 return Registry::cache()
|
H A D | HeaderFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | IndividualFactory.php | 49 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | NoteFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | SubmitterFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | SharedNoteFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | SubmissionFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | MediaFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | SourceFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | LocationFactory.php | 43 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | RepositoryFactory.php | 44 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
H A D | FamilyFactory.php | 50 …return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () u…
|
/webtrees/tests/app/ |
H A D | DefaultUserTest.php | 41 Registry::cache($cache_factory);
|
H A D | UserTest.php | 42 Registry::cache($cache_factory);
|