Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current implementation of the path alias system in D7 uses a prefix whitelist to avoid queries when the path first component is in the whitelist.
The list is correctly updated when a new alias is created, but not when it is deleted. As a consequence, the whitelist contains invalid entries, which causes extra requests in some situations.
Steps to reproduce:
- fresh D7 install
- add a "foo" alias for the "node" system path
- drush vget path_alias_whitelist : ['node']. This is correct.
- delete the "foo" alias
- drush vget path_alias_whitelist : ['node']. This is no longer correct, it should be [].
This will need to be revisited when/if #1209226: Avoid slow query for path alias whitelists is committed.
Comments
Comment #1
fgm