Skip to content

Commit

Permalink
Correct Subscribers tables
Browse files Browse the repository at this point in the history
adding video statics index for faster results
  • Loading branch information
daniel authored and daniel committed Feb 24, 2019
1 parent d8afe1e commit d5486d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions objects/video_statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ static function getTotalLastDaysAsync($video_id, $numberOfDays) {
}
$return = json_decode(file_get_contents($cacheFileName));
if (time() - filemtime($cacheFileName) > 60) {
if (file_exists($cacheFileName . ".lock")) {
return array();
}
// file older than 1 min
$command = ("php '{$global['systemRootPath']}objects/video_statisticgetTotalLastDays.php' '$video_id' '$numberOfDays' '$cacheFileName'");
error_log("getTotalLastDaysAsync: {$command}");
Expand Down

0 comments on commit d5486d9

Please sign in to comment.