public function CacheRouterRebuildSubscriber::onRouterFinished
public CacheRouterRebuildSubscriber::onRouterFinished()
File
- core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php, line 17
Class
- CacheRouterRebuildSubscriber
- Clear cache tags when the router is rebuilt.
Namespace
Drupal\Core\EventSubscriberCode
public function onRouterFinished() { // Requested URLs that formerly gave a 403/404 may now be valid. // Also invalidate all cached routing. Cache::invalidateTags(['4xx-response', 'route_match']); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!CacheRouterRebuildSubscriber.php/function/CacheRouterRebuildSubscriber::onRouterFinished/8.1.x