Cache the alias whitelist.
The whitelist contains the first element of the router paths of all aliases. For example, if /node/12345 has an alias then "node" is added to the whitelist. This optimization allows skipping the lookup for every /user/{user} path if "user" is not in the whitelist.
Name | Modifiers | Type | Description |
---|---|---|---|
CacheCollectorInterface::clear | public | function | Clears the collected cache entry. |
CacheCollectorInterface::delete | public | function | Deletes the element. |
CacheCollectorInterface::get | public | function | Gets value from the cache. |
CacheCollectorInterface::has | public | function | Returns whether data exists for this key. |
CacheCollectorInterface::reset | public | function | Resets the local cache. |
CacheCollectorInterface::set | public | function | Sets cache data. |
© 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!Path!AliasWhitelistInterface.php/interface/AliasWhitelistInterface/8.1.x