Page enchanced files are not erased
-
Hello, when i purify page enchanted data, they are marked _old on ftp, but when wp cron or wp cli do cleanup, they will not disapear.
What i tried:
1. I tried manualy lunch wp cron process
2. I tried wp cli cleanup
I checked code and i found out a source of problemfunction clean() {
@set_time_limit( $this->_clean_timelimit );$this->_clean( $this->_cache_dir, false );
}
in function _clean ->if ( @is_dir( $full_path ) ) {
$this->_clean( $full_path );
} elseif ( !$this->is_valid( $full_path ) ) {
@unlink( $full_path );
}
is_valid -> Always return as true so it will never delete, When I remove condition and force unlink, all files will be removed
I don’t have any _exclude files except .htacess which is not erased correctly
- You must be logged in to reply to this topic.