When rebuilding registry information for plugins, _ctools_registry_files_alter() uses cached information, leading in cases where the location of a plugin changes to a registry table pointing to plugins in their previous location.

CommentFileSizeAuthor
#1 919866-1_registry_cache_clear.patch375 bytesalex_b
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Status: Active » Needs review
FileSize
375 bytes

Relies on #911362-3: ctools_get_plugins_reset() to reset all static plugin caches.

Clears caches before rebuilding registry.

neclimdul’s picture

Status: Needs review » Needs work

As discussed on IRC, this patch is probably built against an older version of ctools that didn't have a fix to ctools_plugin_get_plugin_type_info from sdboyer. That said, if #911362: ctools_get_plugins_reset() to reset all static plugin caches is able to replace the $flush argument for ctools_plugin_get_plugin_type_info, then this patch would probably be preferable.

neclimdul’s picture

Status: Needs work » Closed (fixed)

I can't figure out why this would still be needed.