Skip to content

Commit 8ef5521

Browse files
Update lib/internal/Magento/Framework/Filesystem/Glob.php
Co-authored-by: Abhinav Pathak <51681618+engcom-Hotel@users.noreply.github.com>
1 parent eed2bff commit 8ef5521

File tree

1 file changed

+4
-1
lines changed
  • lib/internal/Magento/Framework/Filesystem

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ class Glob extends LaminasGlob
2020
private static $cache = [];
2121

2222
/**
23-
* Clear the cache.
23+
* Clear the static cache for glob patterns.
24+
* This method should be used primarily in testing environments
25+
* or long-running processes where file system changes occur
26+
* between glob() calls and fresh results are required.
2427
*
2528
* @return void
2629
*/

0 commit comments

Comments
 (0)