Hi,

On my taxonomy pages it seems this function is executed which almost kill my server hence I have large vocabularies. Any ideas why?

/**
* Build a array of all taxonomy terms.
*/
function _service_links_get_terms() {
$types = array();
$vocabularies = taxonomy_get_vocabularies();
foreach ($vocabularies as $vocabulary) {
$tree = taxonomy_get_tree($vocabulary->vid);
foreach ($tree as $term) {
$types[$term->tid] = $term->name;
}
}

return $types;
}

Comments

daphisto’s picture

Also interested in any info that is available for this as well.

chx’s picture

Title: unnecessary taxonomy queries on each page » all taxonomy queries: instant death
Version: 5.x-1.x-dev » 6.x-2.x-dev
Category: support » bug
Priority: Normal » Critical

This module is absolutely unusable on any site with a decent sized taxonomy because the moment you touch admin/config/services/service_links (dunno whats that in D6) the server blows up.

TheCrow’s picture

Status: Active » Fixed

Now vocabularies have to be selected for include their terms in the list

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.