• Resolved nosotrosgroupo

    (@nosotrosgroupo)


    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 problem

    function 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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @nosotrosgroupo

    Thank you for reaching out and I am happy to help!

    Can you please share the cron job you are trying to call? Can you also please sahre what is a Garbage Collection interval set in the Performance>Page Cache>Advanced section?

    Thanks!

    Thread Starter nosotrosgroupo

    (@nosotrosgroupo)

    Cron job:
    w3_pgcache_cleanup

    WP CLI command:
    wp w3-total-cache pgcache_cleanup

    Garbage Collection is set up to 1 day but on test I tried to lower it.

    However it still don’t work and files older than week marked as _old remain in folders.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @nosotrosgroupo

    Thank you for yuour feedback.
    I’ll get back to you when we perform some tests and make sure we can replicate this.

    Thanks!

    Thread Starter nosotrosgroupo

    (@nosotrosgroupo)

    Dot for activity, So it will not be closed.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @nosotrosgroupo

    I have not been able to replciate this.

    Can you provide the website URL?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.