Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Up the transient timeout for the GH response to 12 hours (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshreve authored Aug 2, 2017
1 parent 4a3668d commit 5ce4ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private function maybe_fetch_github_response() {
foreach ( $response as $entry ) {
if ( false === ( bool ) $entry['prerelease'] ) {
$gh_response = $entry;
set_transient( 'wc_api_dev_gh_response', $entry, 2 * HOUR_IN_SECONDS );
set_transient( 'wc_api_dev_gh_response', $entry, 12 * HOUR_IN_SECONDS );
break;
}
}
Expand Down

0 comments on commit 5ce4ed1

Please sign in to comment.