query($wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name=%s AND option_value=%s", Akkedli_V2_Session_State::OPTION, maybe_serialize($encrypted) )); self::clear_cache(); if (1 === $deleted) Akkedli_V2_Session_Retry::clear(); return 1 === $deleted; } private static function clear_cache() { wp_cache_delete(Akkedli_V2_Session_State::OPTION, 'options'); wp_cache_delete('alloptions', 'options'); wp_cache_delete('notoptions', 'options'); } }