Browse Source

Update Http.php

walkor 5 năm trước cách đây
mục cha
commit
eb917d10bf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -243,7 +243,7 @@ class Http
         if ($_SERVER['REQUEST_METHOD'] === 'GET') {
         if ($_SERVER['REQUEST_METHOD'] === 'GET') {
             static::$_cache[$md5] = $ret;
             static::$_cache[$md5] = $ret;
             if (\count(static::$_cache) > 256) {
             if (\count(static::$_cache) > 256) {
-                \array_shift(static::$_cache);
+                unset(static::$_cache[key(static::$_cache)]);
             }
             }
         }
         }