I've got a site with tens of thousands of terms, so the _content_taxonomy_get_all_terms() function crashes the server with an out-of-memory error. I'd like an option to not load the terms for vocabularies that are tag-based.

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new2.29 KB

Here's a quick patch that adds a variable which allows the terms in tag-based vocabulary to not be loaded in that function.

cyberswat’s picture

+1

damienmckenna’s picture

StatusFileSize
new2.93 KB

A second patch, this time it adds a variable to not load the terms at all, as on my site it had over seven hundred terms in non-tag vocabularies which killed my browser.

AntiNSA’s picture

The thing is, I dont want to feep every kid of vocabulary from loading all the terms, just some vocabularies. any ideas?

AntiNSA’s picture

Priority: Normal » Major

Parse error: syntax error, unexpected T_CASE in /home/cyberfan/htdocs/sites/all/modules/content_taxonomy/content_taxonomy.module on line 139

AntiNSA’s picture

Version: 6.x-1.0-rc2 » 6.x-1.x-dev

I receive this error when I add the setting to settings.php Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2 bytes) in /home/cyberfan/htdocs/includes/database.mysql.inc on line 160

I never recieved it before this mod. is this because I am using newest dev version instead of one year old rc version?

zazinteractive’s picture

Patch isn't working