Update expired properties.

This commit is contained in:
Hoang Huu
2019-11-04 08:28:41 +07:00
parent 09e5f5adfc
commit 943d5e20e4
5 changed files with 252 additions and 108 deletions

View File

@@ -72,7 +72,7 @@ class Opalestate_Cache {
self::$instance->is_cache = ( defined( 'GIVE_CACHE' ) ? GIVE_CACHE : opalestate_is_setting_enabled( opalestate_get_option( 'cache', 'enabled' ) ) ) && is_admin();
// weekly delete all expired cache.
Give_Cron::add_weekly_event( array( $this, 'delete_all_expired' ) );
// Give_Cron::add_weekly_event( array( $this, 'delete_all_expired' ) );
add_action( 'save_post_opalestate_forms', array( $this, 'delete_form_related_cache' ) );
add_action( 'save_post_opalestate_payment', array( $this, 'delete_payment_related_cache' ) );