Преглед изворни кода

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