Download & Extend

Cache redirects in static variable

Project:Taxonomy Redirect
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Issue tags:Performance

Issue Summary

On a particular views page on my site which displays a lot of taxonomy terms, this patch brought the number of queries from 1260 to 755.

AttachmentSize
taxonomy_redirect-DRUPAL-6--1_static_cache.patch1.83 KB

Comments

#1

Status:needs review» reviewed & tested by the community

Patch looks good, applies to latest dev version and greatly improves performance in certain situations
RTBC

#2

Thanks for this. With a little fiddling, I also got the patch applied to the current recommended release (6.x-1.3). I think this is an essential patch to this module, it is quite silly to repeatedly do the same database-query in case the same term is shown many times on the same page. It seems the module isn't being maintained all that actively at the moment, though.