Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arcangelini committed Aug 18, 2024
1 parent 38ac9a5 commit 2c9ba96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 2c9ba96

Please sign in to comment.