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

Commit

Permalink
Override advisors w/ 1 hour cache
Browse files Browse the repository at this point in the history
 - waiting for next daily doesn't work w/ Trials
  • Loading branch information
iBotPeaches committed Dec 16, 2016
1 parent 81fbe50 commit ffdd10a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion destiny/DestinyPlatform.php
Expand Up @@ -14,7 +14,7 @@ public function manifest()

public function advisors()
{
return $this->request("destiny/advisors/v2/", next_daily(), CACHE_INDEX);
return $this->request("destiny/advisors/v2/", null, CACHE_INDEX, false);
}

public function xur()
Expand Down
4 changes: 4 additions & 0 deletions destiny/DestinyRequest.php
Expand Up @@ -51,6 +51,10 @@ public function __construct($uri, $params = [], $cache = null, $salvageable = tr
$salvageable = $params;
$params = [];
}
else if ($params === null)
{
$params = [];
}
else if ( ! is_array($params))
{
$salvageable = ($cache === null) ? true : $cache;
Expand Down

0 comments on commit ffdd10a

Please sign in to comment.