Browse Source

Rename throttle key to avoid namespace clash with dl:*

Jordi Boggiano 7 years ago
parent
commit
3a7c0d61d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Packagist/WebBundle/Model/DownloadManager.php

+ 1 - 1
src/Packagist/WebBundle/Model/DownloadManager.php

@@ -128,7 +128,7 @@ class DownloadManager
             $version = $job['vid'];
 
             // throttle key
-            $args[] = 'dl:'.$package.':'.$job['ip'].':'.$day;
+            $args[] = 'throttle:'.$package.':'.$job['ip'].':'.$day;
             // stats keys
             $args[] = 'dl:'.$package;
             $args[] = 'dl:'.$package.':'.$month;