Re: Caching, caching, caching
With the new path_alias handling, it seems that the biggest gain is in cutting the volume of sql queries. The stuff I did in 4.6 was (again) very specific and based on the settings I used for Pathauto. Perhaps we could write an advanced path.module settings page that lets site admins turn of alias lookups for specific path types -- where a path type is defined, essentially, by arg(0). I can think of the following paths that might qualify: - node - comment - admin - taxonomy - user - blog This wouldn't require regex lookups on-the-fly, and would be turned off by default. But it might allow me to say: only do the following path lookups. The gain is minor on small sites, but not large ones. Drawback (and there may be more): Might need a module hook to let module 'register' themselves with path.module's settings. -Ken Rickard agentrickard
On 21 Jul 2006, at 21:35, Ken Rickard wrote:
Perhaps we could write an advanced path.module settings page that lets site admins turn of alias lookups for specific path types -- where a path type is defined, essentially, by arg(0). I can think of the following paths that might qualify:
- node - comment - admin - taxonomy - user - blog
This wouldn't require regex lookups on-the-fly, and would be turned off by default. But it might allow me to say: only do the following path lookups.
The gain is minor on small sites, but not large ones.
Drawback (and there may be more): Might need a module hook to let module 'register' themselves with path.module's settings.
This would be another possible solution. I don't think we need a hook to register paths; just a textarea to enter a list of URLs. We use similar lists on the blog configuration page. -- Dries Buytaert :: http://www.buytaert.net/
participants (2)
-
Dries Buytaert -
Ken Rickard