Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
6edef4efa1
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      index.php

+ 4 - 0
index.php

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