File "Cache_File_Cleaner_Generic_HardDelete.php"
Full Path: /home/mba/public_html/wp-content-20250807152928/plugins/w3-total-cache/Cache_File_Cleaner_Generic_HardDelete.php
File size: 458 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace W3TC;
/**
* Disk-enhanced file cache cleaner
*/
class Cache_File_Cleaner_Generic_HardDelete extends Cache_File_Cleaner_Generic {
function __construct( $config = array() ) {
parent::__construct( $config );
}
function _clean_file( $entry, $full_path ) {
if ( substr( $entry, -4 ) === '_old' ) {
$this->processed_count++;
@unlink( $full_path );
} elseif ( !$this->is_valid( $full_path ) ) {
@unlink( $full_path );
}
}
}