Caching¶
Once a sitemap is located by a sitemap provider,
the path to the XML sitemap is cached. This speeds up following
warmup requests. Caching happens with a custom warming cache
which defaults to a filesystem cache located at var/cache/code/warming/sitemaps.php.
- class EliasHaeussler\Typo3Warming\Cache\SitemapsCache¶
Read and write sitemap cache entries from custom
warmingcache.- get($site, $siteLanguage = null)¶
Get the located sitemaps of a given site.
- Parameters
$site (
TYPO3\CMS\Core\Site\Entity\Site) -- The sitemap's site object.$siteLanguage (
TYPO3\CMS\Core\Site\Entity\SiteLanguage) -- An optional site language.
- Returns
Located sitemaps of a given site.
- set($sitemaps)¶
Add the located sitemaps to the
warmingcache.- Parameters
$sitemaps (
array) -- The located sitemaps to be cached.