Add a filter to force the plugins cache to be refreshed.
Determine if the plugins cache should be refreshed by scanning the plugin directory and the active plugins list for changes.