installed plugin W3 Total Cache
version 2.3.2
This commit is contained in:
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user