Migration¶
This page lists all notable changes and required migrations when upgrading to a new major version of this extension.
Version 2.0.0¶
Integration of EXT:sitemap_locator¶
Sitemaps cache was extracted to EXT:sitemap_locator. Use
EliasHaeussler\Typo3SitemapLocator\Cache\SitemapsCache
instead ofEliasHaeussler\Typo3Warming\Cache\SitemapsCache
.Sitemap providers were extracted to EXT:sitemap_locator. Use
EliasHaeussler\Typo3SitemapLocator\Sitemap\Provider\Provider
instead ofEliasHaeussler\Typo3Warming\Sitemap\Provider\Provider
for custom provider implementations.Sitemap locator was extracted to EXT:sitemap_locator. Use
EliasHaeussler\Typo3SitemapLocator\Sitemap\SitemapLocator
instead ofEliasHaeussler\Typo3Warming\Sitemap\SitemapLocator
.
Relocated sitemap model¶
The default
EliasHaeussler\Typo3Warming\Sitemap\SiteAwareSitemap
model was moved toEliasHaeussler\Typo3Warming\Domain\Model\SiteAwareSitemap
. Update references to this class in your code.
Version 1.0.0¶
Default crawlers¶
Default crawlers are now
final
. Custom crawlers can no longer extend default crawlers. ImplementEliasHaeussler\CacheWarmup\Crawler\CrawlerInterface
orEliasHaeussler\CacheWarmup\Crawler\VerboseCrawlerInterface
instead.CrawlerFactory
fromeliashaeussler/cache-warmup
library is now used to instantiate crawlers. Dependency injection is no longer possible.EliasHaeussler\Typo3Warming\Crawler\ConfigurableClientTrait
was removed. UseEliasHaeussler\Typo3Warming\Http\Client\ClientFactory::get
instead.EliasHaeussler\Typo3Warming\Crawler\RequestAwareInterface
andEliasHaeussler\Typo3Warming\Crawler\RequestAwareTrait
were removed. UseEliasHaeussler\Typo3Warming\Crawler\StreamableCrawler
in combination withEliasHaeussler\Typo3Warming\Http\Message\Handler\StreamResponseHandler
instead.EliasHaeussler\Typo3Warming\Crawler\UserAgentTrait
was removed. Provide an own implementation that callsEliasHaeussler\Typo3Warming\Configuration\Configuration::getUserAgent
instead.
Warmup request handling¶
EliasHaeussler\Typo3Warming\ValueObject\Request\WarmupRequest
is nowfinal
.EliasHaeussler\Typo3Warming\ValueObject\Request\WarmupRequest::$updateCallback
was removed. Streamed warmup requests must now be handled by usingEliasHaeussler\Typo3Warming\Http\Message\Handler\StreamResponseHandler
in a custom crawler instead.Crawling result handling within
EliasHaeussler\Typo3Warming\ValueObject\Request\WarmupRequest
was removed. Use the returnedEliasHaeussler\Typo3Warming\Result\CacheWarmupResult
fromEliasHaeussler\Typo3Warming\Service\CacheWarmupService::warmup
instead.EliasHaeussler\Typo3Warming\Service\CacheWarmupService::warmupPages
andEliasHaeussler\Typo3Warming\Service\CacheWarmupService::warmupSites
were combined to a new methodEliasHaeussler\Typo3Warming\Service\CacheWarmupService::warmup
. Use this method with dedicated instances ofEliasHaeussler\Typo3Warming\ValueObject\Request\SiteWarmupRequest
andEliasHaeussler\Typo3Warming\ValueObject\Request\PageWarmupRequest
.
Sitemap providers¶
EliasHaeussler\Typo3Warming\Sitemap\Provider\ProviderInterface
was renamed toEliasHaeussler\Typo3Warming\Sitemap\Provider\Provider
.EliasHaeussler\Typo3Warming\Sitemap\Provider\AbstractProvider
was removed. Custom sitemap providers must now implementEliasHaeussler\Typo3Warming\Sitemap\Provider\Provider
directly. The previously available trait method is now available withinEliasHaeussler\Typo3Warming\Utility\HttpUtility::getSiteUrlWithPath
.EliasHaeussler\Typo3Warming\Sitemap\Provider\Provider::get
now returns an array ofEliasHaeussler\Typo3Warming\Sitemap\SiteAwareSitemap
instances.A new sitemap provider
EliasHaeussler\Typo3Warming\Sitemap\Provider\PageTypeProvider
was added. It is configured with highest priority. Read more at Sitemap providers.
Language handling¶
EliasHaeussler\Typo3Warming\Sitemap\SiteAwareSitemap
now requires a site language to be set.Page uri generation now respects configured language overlays and is moved to
EliasHaeussler\Typo3Warming\Utility\HttpUtility::generateUri
.
Extension configuration¶
Command options¶
New command option
--format
was added. Read more at warming:cachewarmup.New command option
--strategy
was added. Read more at warming:cachewarmup.
Template paths¶
Template paths were rewritten:
CacheWarmupToolbarItem.html
was rewritten toToolbar/CacheWarmupToolbarItem.html
CacheWarmupToolbarItemActions.html
was rewritten toModal/SitesModal.html
Partial paths were rewritten:
ToolbarItem.html
was inlined to templateToolbar/CacheWarmupToolbarItem.html
ToolbarItemAction.html
was split intoModal/Sites/SiteGroup.html
andModal/Sites/SiteGroupItem.html
ToolbarItemMissing.html
was rewritten toModal/Alert/NoSites.html
ToolbarItemPlaceholder.html
was removedToolbarItemUserAgent.html
was removed