$error_data['http_code'] >= 400 ) { // We got a 4xx or 5xx HTTP error. $cache_duration = 2 * HOUR_IN_SECONDS; } } set_site_transient( $this->cache_transient_name, $response, $cache_duration ); return $response; } /** * Delete WP Rocket update data cache. * * @since 3.3.6 * @access public * @author Grégory Viguier */ public function delete_rocket_update_data_cache() { delete_site_transient( $this->cache_transient_name ); } }