소스 검색

Force a redirect to fixed issue where reset wouldn't update the details and could enable constant resetting on real-time updates.

Andrew Collington 9 년 전
부모
커밋
6edef4efa1
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      index.php

+ 4 - 0
index.php

@@ -72,8 +72,12 @@ class OpCacheService
             exit;
         } else if (isset($_GET['reset']) && $self->getOption('allow_reset')) {
             $self->resetCache();
+            header('Location: ?');
+            exit;
         } else if (isset($_GET['invalidate']) && $self->getOption('allow_invalidate')) {
             $self->resetCache($_GET['invalidate']);
+            header('Location: ?');
+            exit;
         }
         return $self;
     }