Controllers+Views+JS+Route: Implement cache purging

This commit is contained in:
Riyyi
2021-08-30 00:45:57 +02:00
parent b244b625ab
commit d50443b10a
4 changed files with 135 additions and 7 deletions
+6 -3
View File
@@ -23,7 +23,8 @@ use \App\Classes\Config;
</div>
<div class="col-3 col-md-2 col-lg-2 col-xl-2">
<div class="d-flex justify-content-center">
<button id="" class="btn btn-dark">Purge</button>
<a class="js-purge btn btn-dark" href="<?= $this->purgeUrl; ?>"
data-type="css-js" data-token="<?= $this->csrfToken; ?>">Purge</a>
</div>
</div>
</div>
@@ -35,7 +36,8 @@ use \App\Classes\Config;
</div>
<div class="col-3 col-md-2 col-lg-2 col-xl-2">
<div class="d-flex justify-content-center">
<button id="" class="btn btn-danger">Purge</button>
<a class="js-purge btn btn-danger" href="<?= $this->purgeUrl; ?>"
data-type="fonts-images" data-token="<?= $this->csrfToken; ?>">Purge</a>
</div>
</div>
</div>
@@ -47,7 +49,8 @@ use \App\Classes\Config;
</div>
<div class="col-3 col-md-2 col-lg-2 col-xl-2">
<div class="d-flex justify-content-center">
<button id="" class="btn btn-danger">Purge</button>
<a class="js-purge btn btn-danger" href="<?= $this->purgeUrl; ?>"
data-type="all" data-token="<?= $this->csrfToken; ?>">Purge</a>
</div>
</div>
</div>