فهرست منبع

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;
     }