Use FileCache correctly
Open
requested to merge issue/plugin-3416294:3416294-drupalpluginplugintypeplugintypemanagergetplugintypes-does-not into 8.x-2.x
2 unresolved threads
Closes #3416294
Merge request reports
Activity
added 1 commit
- 1f414937 - Use FileCache even more correctly and add a proper cache
78 91 return $this->pluginTypes; 79 92 } 80 93 94 $plugin_types = $this->cache->get('plugin:plugin_type'); 95 96 // Return immediately if all data is available in the cache. 97 if (is_array($plugin_types)) { changed this line in version 5 of the diff
131 147 132 148 // Store the plugin types in the static and file caches. 133 149 $this->pluginTypes += $file_plugin_types; 134 $file_cache->set($file, $file_plugin_types); 135 150 } 151 $this->cache->set('plugin:plugin_type', $this->pluginTypes); 136 152 137 153 return $this->pluginTypes; 138 154 } 139 155 156 protected function readFiles(array $files): array { changed this line in version 6 of the diff
added 1 commit
- 744122cb - Fix cache implementation and make code a bit simpler
Please register or sign in to reply