Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Modify cache expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
StefansArya committed Feb 9, 2018
1 parent b766583 commit f0e9330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider/Youtube/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ private function parseUrl()

if(!in_array($this->getVideoId(), $videoIds)) {
$videoIds[] = $this->getVideoId();
$this->getCache()->set('videoIds', $videoIds, 3600*24);
$this->getCache()->set('videoIds', $videoIds, 900);

// getPlayerInfoByVideoId should be run once only for a video
$player_info = SignatureDecipher::getPlayerInfoByVideoId($this->getVideoId());

$this->getCache()->set('playerID', $player_info, 3600*24);
$this->getCache()->set('playerID', $player_info, 900);
}
else {
$player_info = $this->getCache()->get('playerID', null);
Expand Down

0 comments on commit f0e9330

Please sign in to comment.