Last active
August 21, 2022 15:20
-
-
Save nawawi/c4e68ac2a65e24e755ccb181e1fd3b34 to your computer and use it in GitHub Desktop.
docketcache_flush_every_hour
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('docketcache_flush_every_hour', 'wp_cache_flush'); | |
if (!wp_next_scheduled('docketcache_flush_every_hour')) { | |
wp_schedule_event(time(), 'hourly', 'docketcache_flush_every_hour'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment