Skip to content

Commit c72dcf8

Browse files
committed
Move cache invocation out of if
1 parent bfab309 commit c72dcf8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ private function getCachedOrLiveData(): array {
159159
$data[ $key ]['plugin'] = sanitize_text_field( $value['plugin'] );
160160
$data[ $key ]['url'] = esc_url_raw( $value['url'] );
161161
}
162+
163+
$this->setCache( $data );
162164
}
163165

164166
return $data;

0 commit comments

Comments
 (0)