plugin_helper = new Plugin_Helper(); $this->item_lookup_response_cache = new Item_Lookup_Response_Cache( new Sql_Helper( DB_NAME, Db_Constants::ITEM_LOOKUP_RESPONSE_TABLE_NAME ) ); $this->cron_schedule_manager = new Cron_Schedule_Manager(); } /** * Remove the cache stored in the database. * * @since 1.0.0 */ private function remove_cache() { $this->plugin_helper->clear_cache_for_substring( '' ); } /** * The code to run on deactivation * * @since 1.8.0 */ public function deactivate() { $this->item_lookup_response_cache->clear(); $this->cron_schedule_manager->unschedule_cron_tasks(); $this->remove_cache(); } } ?>