Skip to content

Commit

Permalink
Shorten transient value to 4 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
earnjam committed Jul 27, 2023
1 parent fa2b981 commit c9bda24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SiteCapabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function all() {
$capabilities = get_transient( 'nfd_site_capabilities' );
if ( false === $capabilities ) {
$capabilities = $this->fetch();
set_transient( 'nfd_site_capabilities', $capabilities, 30 * DAY_IN_SECONDS );
set_transient( 'nfd_site_capabilities', $capabilities, 4 * HOUR_IN_SECONDS );
}

return $capabilities;
Expand Down

0 comments on commit c9bda24

Please sign in to comment.