Added support for new-style core hooks.
cache_location core hook is now using a new-style core hook.