• Resolved tbnv

    (@tbnv)


    Hello,

    It is possible to set the cache to expire automatically after X hours. But how do I tell the cache to expire each day at midnight? Is there any cron job possibility?

Viewing 3 replies - 1 through 3 (of 3 total)
  • codyarsenault

    (@codyarsenault)

    You can set a cron job to remove the Cache Enabler files based on the time period you define. Something like this should work 00 00 * * * rm -rf /path/to/your/wordpress/wp-content/cache/cache-enabler/

    Homie Pet Shop

    (@homiepetshop)

    Is there any wp cron function/code to do the same thing?

    Thread Starter tbnv

    (@tbnv)

    @codyarsenault It works perfectly, thanks.

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

The topic ‘Cache expiration time’ is closed to new replies.