• Resolved steven.m

    (@stevenmaas)


    W3TC has Page, Object and Database garbage collection Intervals. It is my understanding that the cleanup command is used for the garbage collection.

    What is the CLI for Page, Object and Database Cleanup commands? Is there an Cleanup All command to do all three?

    When leaving garbage collection blank the setting adds a 0 and the event shows the below.

    [W3TC] Page Cache file GC (every 0 seconds)
    This interval is less than the WP_CRON_LOCK_TIMEOUT constant which is set to 60 seconds. Events that use it may not run on time.

    Is there a way to disable garbage collection intervals and run using only CLI?

    • This topic was modified 1 year, 5 months ago by steven.m.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevenmaas

    Thank you for reaching out and I am happy to help!
    There are no cli commands for the db and Object cache cleanup and the reason is that the Disk Caching method is not recommended as I mentioned before however, for the Page cache we do have pgcache_cleanup() for wp-cli

    If the GC interval is set to 0 then this will not be performed. The notification you are getting means that The maximum duration of this “lock” is set by the WP_CRON_LOCK_TIMEOUT constant which by default is set to 60 seconds.
    This being said, you can ignore this and set the GC interval to 0 and run the wp-cli command instead

    I hope this helps!

    Thread Starter steven.m

    (@stevenmaas)

    W3TC creates a cron event for Page, Object and Database garbage collection Intervals. Why not have a WP CLI?

    Database and Object show option for disk? If disk is not recommended should you just disable caching for both then?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevenmaas

    Thank you for your feedback.
    There was no specific need for it since the Disk is not recomended for OC and DB Caching. It’s still availabe to use for the users that have a basic website, on a shared server with limited options

    I hope this helps!

    Thanks!

    Thread Starter steven.m

    (@stevenmaas)

    Please consider adding cli commands for the Page, Database and Object cache cleanup. Add the commands in the description on the page so they are easy to find.

    Thanks again for your fantastic plugin.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevenmaas

     I would advise opening a ticket in our GitHub repository, and adding those details there so the dev team can review this. You can also create a pull request if you are confident in the solution.

    You are most welcome!

    We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Cache Cleanup / Garbage Collection’ is closed to new replies.