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.

class EliasHaeussler\Typo3Warming\Cache\SitemapsCache

Read and write sitemap cache entries from custom warming cache.

get($site, $siteLanguage = null)

Get the located sitemaps of a given site.

Parameters
Returns

Located sitemaps of a given site.

set($sitemaps)

Add the located sitemaps to the warming cache.

Parameters
  • $sitemaps (array) -- The located sitemaps to be cached.

See also

View the sources on GitHub: