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
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.

See also

View the sources on GitHub: