Context Node Taxonomy Fix

Categories

Component ID

2450571

Component name

Context Node Taxonomy Fix

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is a module that overrides the node taxonomy condition that comes with the context module to get around performance issues with large taxonomies. It lets users opt to use autocomplete fields instead of the default select field, which effectively avoids all the calls to taxonomy_get_tree() that can cause WSOD due to memory exhaustion.

Enabling this module will replace the condition plugin that comes with the context module through an alter hook. Existing contexts that already use the node taxonomy condition will automatically get the upgraded plugin. The new autocomplete field option can be found under "admin/structure/context/settings". All of the data in the backend remains compatible with the default select field, so if disabled everything still works.

On my site, it took the memory consumption of a test context edit-page from 460MB to 160MB. Obviously YMMV based on how many terms you have.

This module lets you have the benefits of the patch I created for the context module, without having to do any patching. If this fix makes it into the context module then this module will just become obsolete.
#873936-47: Context UI very slow