Plugin Directory


Ignore:
Timestamp:
08/17/2026 05:22:41 PM (2 months ago)
Author:
shiponkarmakar
Message:

Release v1.0.13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • optimazz/trunk/includes/Modules/Cache/Storage/DiskStorage.php

    r3617648 r3651494  
    5252                );
    5353                foreach ( $it as $file ) {
    54                         if ( $file->isFile() && 'html' === strtolower( $file->getExtension() ) ) {
     54                        // Count only real cached pages. Every cache folder also contains an
     55                        // empty index.html placeholder (written for directory protection);
     56                        // counting those inflated "Cached pages" and reported 0-byte pages.
     57                        if ( $file->isFile()
     58                                && 'html' === strtolower( $file->getExtension() )
     59                                && 'index.html' !== strtolower( $file->getFilename() ) ) {
    5560                                ++$files;
    5661                                $bytes += (int) $file->getSize();
Note: See TracChangeset for help on using the changeset viewer.