- Timestamp:
- 10/01/2026 12:31:38 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
optimazz/trunk/includes/Modules/Cache/Storage/DiskStorage.php
r3651494 r3723128 42 42 return array( 43 43 'files' => 0, 44 'pages' => 0, 44 45 'bytes' => 0, 45 46 ); … … 48 49 $files = 0; 49 50 $bytes = 0; 51 // A page (one URL) is stored as several variants in its own folder — 52 // desktop/mobile, http/https, query strings. "Cached pages" counts the 53 // pages, so it matches what the preloader reports; 'files' is kept for 54 // the raw variant count. 55 $dirs = array(); 50 56 $it = new \RecursiveIteratorIterator( 51 57 new \RecursiveDirectoryIterator( $root, \FilesystemIterator::SKIP_DOTS ) … … 60 66 ++$files; 61 67 $bytes += (int) $file->getSize(); 68 $dirs[ $file->getPath() ] = true; 62 69 } 63 70 } … … 65 72 return array( 66 73 'files' => $files, 74 'pages' => count( $dirs ), 67 75 'bytes' => $bytes, 68 76 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)