Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] Purge W3TC cache as step of a cron job.

  • Resolved lizdav

    (@lizdav)


    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/

Viewing 1 replies (of 1 total)
  • andreasnrb

    (@andreasnrb)

    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()

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: W3 Total Cache] Purge W3TC cache as step of a cron job.’ is closed to new replies.