• Resolved tta

    (@tykho)


    Hey,
    So I’ve been trying to use wp-cli to flush the cache, since I want the cache to flush at a specific time, by adding a cronjob.

    I issue wp w3-total-cache flush and I get:
    Success: The page cache is flushed successfully.

    However, in the cache dir I can still see the cache files unchanged. I’ve tried all the wp-cli w3-total-cache flush commands, with the same result.

    Anybody figured this out? Or some other way to set up a cronjob to flush the cache at a specific time.

    Thanks

    https://wordpress.org/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
  • Thread Starter tta

    (@tykho)

    Okay, figured it out, it’s a permissions problem. My normal user cannot deal with the cache files created by my webserver user.

    To solve it, I issue the command as such;

    sudo -u www-data wp total-cache flush

Viewing 1 replies (of 1 total)

The topic ‘wp-cli w3-total-cache not working?’ is closed to new replies.