diff --git a/weather-api.php b/weather-api.php index 4b8ebae..090e3d6 100644 --- a/weather-api.php +++ b/weather-api.php @@ -105,7 +105,7 @@ function get_current_weather_data() { $cache_key = 'spearfishing_current_weather_data'; $cached_response = wp_cache_get( $cache_key ); - if ( $cached_response ) { + if ( ! $cached_response ) { $current_weather_data = fetch_current_weather_data(); wp_cache_set( $cache_key, $current_weather_data, '', 600 );