mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Change so we cache loading plugins by its version (#41367)
* making it possible to cache plugins based on the version. * feat(plugincache): introduce function to invalidate entries * removed todo's * added tests for the cache buster. * fixed tests. * fixed failing tests. Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
@@ -126,8 +126,8 @@ export class GrafanaApp {
|
||||
|
||||
// Preload selected app plugins
|
||||
const promises: Array<Promise<any>> = [];
|
||||
for (const modulePath of config.pluginsToPreload) {
|
||||
promises.push(importPluginModule(modulePath));
|
||||
for (const plugin of config.pluginsToPreload) {
|
||||
promises.push(importPluginModule(plugin.path, plugin.version));
|
||||
}
|
||||
|
||||
await Promise.all(promises);
|
||||
|
||||
Reference in New Issue
Block a user