Closed sandrodz closed 4 years ago
This occurred because when any post type was saved the save_hook
was being fired. This caused Cache_Enabler::check_future_posts()
to be called. If there was not a cache timeout to be recorded Cache_Enabler_Disk::delete_advcache_settings()
was being called.
Improving this behavior ties into #112. I've completed this enhancement and will open a PR shortly. This change will be released in version 1.5.0.
PHP Notice: Undefined index: HTTP_HOST in /var/www/superstore.wearede.com/public/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 603
My custom wp-cli command creates WooCommerce product drafts. Why is it triggering delete settings at all?