Spike: deleting routing from cache directory
Description
Background
The page controller had a clear routing cache method that deletes the url mather and generator from the current cache directory. This should not be done ever as this could break stuff even if only for one request.
Requirements
Find another way to apply page URL changes.
Deployment actions
Technical tasks
Activity
.Notificatie oplevering gestuurd naar Integrated Marijn (marijn@e-active.nl)
Vervangen door de CMF Dynamic Router.
https://symfony.com/doc/current/cmf/components/routing/dynamic.html
https://symfony.com/doc/current/cmf/bundles/routing/dynamic_customize.html
https://symfony.com/doc/current/cmf/bundles/routing/index.html
https://symfony.com/doc/current/cmf/components/routing/index.html
Het verwijderen van de router cache gebeurd in de service.
Integrated\Bundle\PageBundle\Services\RouteCache (integrated_page.services.route_cache)
De service wordt gebruikt op in de volgende classes.
Integrated\Bundle\PageBundle\Controller\ContentTypePageController (container)
Integrated\Bundle\PageBundle\Controller\PageController (container)
Integrated\Bundle\PageBundle\EventListener\ContentTypeChangedListener (constructor injection)
Vervolgens wordt de routing gegenereerd door twee router regels in het bestand.
src/Bundle/WebsiteBundle/Resources/config/routing.xml
De routing types "integrated_website_page" en "integrated_website_content_type_page" worden geladen door
Integrated\Bundle\WebsiteBundle\Routing\ContentTypePageLoader (integrated_website_content_type_page)
Integrated\Bundle\WebsiteBundle\Routing\PageLoader (integrated_website_page)
.Schatting van 12.5 uur is geaccepteerd door Integrated Marijn (in opdracht ingevoerd door Marijn Otte).
.Notificatie urenschatting gestuurd naar Integrated Marijn (marijn@e-active.nl)