Skip to content
Snippets Groups Projects

Use FileCache correctly

2 unresolved threads

Closes #3416294

Merge request reports

Members who can merge are allowed to add commits.
Code Quality is loading
Test summary results are being parsed
Ready to merge by members who can write to the target branch.
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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)) {
  • 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 {
  • Alex Pott added 1 commit

    added 1 commit

    Compare with previous version

  • Alex Pott added 1 commit

    added 1 commit

    Compare with previous version

  • Alex Pott added 1 commit

    added 1 commit

    • 744122cb - Fix cache implementation and make code a bit simpler

    Compare with previous version

  • Alex Pott added 1 commit

    added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading