Skip to content

Commit 329a873

Browse files
authored
Dynamically set cache expiration
1 parent dc717b8 commit 329a873

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/ThemeUpdater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function getRelease() {
154154
$data = json_decode( $body, true );
155155
if ( ! is_null( $data ) ) {
156156
$payload = $this->mapData( $data );
157-
set_transient( $cache_key, $payload, HOUR_IN_SECONDS * 6 );
157+
set_transient( $cache_key, $payload, $this->cacheExpiration );
158158
}
159159
}
160160
}

0 commit comments

Comments
 (0)