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 the core
cache which defaults
to a filesystem cached located at var/cache/code/core/tx_warming.php
.
- class EliasHaeussler\Typo3Warming\Cache\CacheManager¶
Manager to read and write the core cache
tx_warming
.- get($site = null, $siteLanguage = null)¶
Get all located sitemaps or the located sitemap of a given site and/or site language.
- Parameters
$site (
TYPO3\CMS\Core\Site\Entity\Site
) -- The sitemap's site object orNULL
to lookup all sitemaps.$siteLanguage (
TYPO3\CMS\Core\Site\Entity\SiteLanguage
) -- An optional site language
- Returns
Either an array of all located sitemaps or the located sitemap of a given site.
- set($sitemap)¶
Add the located sitemap to the
tx_warming
cache.- Parameters
$sitemap (
EliasHaeussler\Typo3Warming\Sitemap\SiteAwareSitemap
) -- The located sitemap to be cached.