installed plugin W3 Total Cache version 2.3.2

This commit is contained in:
2023-06-05 11:23:16 +00:00
committed by Gitium
parent d9b3c97e40
commit 51ea2ff21c
2730 changed files with 334913 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?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 );
}
}
}