WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Purge W3TC cache as step of a cron job. (2 posts)

  1. lizdav
    Member
    Posted 2 years ago #

    I Love W3TC, but have a need to be able to purge the cache as a step in an existing (shell) Cron job. The cron job will run as long as is necessary and will have an irregular completion time. Therefore I would like to make it a step in the cron job.

    I essence, I have pages that are static for ~24hours until a cronjob updates a product database, after which I would like to have the cron job make a call to flush the entire W3TC cache such that the updated pages are served until next day (or any other changes are made).

    Is this possible?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. cyonite
    Member
    Posted 2 years ago #

    Yes you can call flush in the code.
    flush_all()
    flush_cache()
    flush_dbcache()
    flush_file()
    flush_memcached()
    flush_minify()
    flush_objectcache()
    flush_opcode()
    flush_pgcache()
    flush_post()

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic