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

None

Technical tasks

None

Activity

Show:
API
February 20, 2018, 2:33 PM

.Notificatie oplevering gestuurd naar Integrated Marijn (marijn@e-active.nl)

Jan Sanne Mulder
February 20, 2018, 2:11 PM

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)

API
November 6, 2017, 9:25 AM

.Schatting van 12.5 uur is geaccepteerd door Integrated Marijn (in opdracht ingevoerd door Marijn Otte).

API
November 3, 2017, 4:04 PM

.Notificatie urenschatting gestuurd naar Integrated Marijn (marijn@e-active.nl)

Fixed

Assignee

Unassigned

Client

Integrated Marijn

External issue ID

None

Min. hours

None

Dev hour estimate

None

Epic Link

Sprint

None

Fix versions