Skip to content

Commit f76e155

Browse files
authored
feat: Add option to clear \Magento\Framework\Filesystem\Glob cache
Fixing issue #35741
1 parent cd826aa commit f76e155

File tree

1 file changed

+10
-0
lines changed
  • lib/internal/Magento/Framework/Filesystem

1 file changed

+10
-0
lines changed

lib/internal/Magento/Framework/Filesystem/Glob.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ class Glob extends LaminasGlob
1919
*/
2020
private static $cache = [];
2121

22+
/**
23+
* Clear the cache.
24+
*
25+
* @return void
26+
*/
27+
public static function clearCache(): void
28+
{
29+
self::$cache = [];
30+
}
31+
2232
/**
2333
* Find path names matching a pattern.
2434
*

0 commit comments

Comments
 (0)