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

Commit 5ce4ed1

Browse files
author
Justin Shreve
authored
Up the transient timeout for the GH response to 12 hours (#38)
1 parent 4a3668d commit 5ce4ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto-update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private function maybe_fetch_github_response() {
4040
foreach ( $response as $entry ) {
4141
if ( false === ( bool ) $entry['prerelease'] ) {
4242
$gh_response = $entry;
43-
set_transient( 'wc_api_dev_gh_response', $entry, 2 * HOUR_IN_SECONDS );
43+
set_transient( 'wc_api_dev_gh_response', $entry, 12 * HOUR_IN_SECONDS );
4444
break;
4545
}
4646
}

0 commit comments

Comments
 (0)