Issue Bug Closed

#99042rebuild cache on new redirect

Achim Fritz 11/10/22, 10:41 updated 12/06/22, 21:52

Description

creating a new redirect in Redirect-Module do not trigger the redirectCacheService to rebuild cache because
@$dataHandler->datamap[‘sys_redirect’][(int)$parameters[‘uid’]]@ ist not set
(but $dataHandler->datamap['sys_redirect']['NEW...']

Steps to reproduce
  • empty table sys_redirect
  • create a redirect in the Backend-Module (cache table still keeps empty)
  • call created redirect URL in FE (cache is created, because table was empty)
  • create an other redirect in the Backend-Module (cache table is not updatet)
  • call the new created redirect URL in FE ends to 404 Error

(if you edit the new created redirect in Backend-Module (change some value), and save it, the redirect works in FE (because cache table was updatet)

TYPO3 v11 and v12

(s. also https://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/8d7090704b7140338a4ecfecec84644f5aa2f606/diff)

Reviews 2