Caching¶
Once a sitemap is located by a sitemap provider,
the path to the XML sitemap is cached. Caching happens with a custom
sitemap_locator
cache which defaults to a filesystem cache located at
var/cache/code/sitemap_locator
.
- class EliasHaeussler\Typo3SitemapLocator\Cache\SitemapsCache¶
Read and write sitemap cache entries from custom
sitemap_locator
cache.- 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
sitemap_locator
cache.- Parameters
$sitemaps (
array
) -- The located sitemaps to be cached.