This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give system admins ability to clear caches (#834)
* Give system admins ability to clear caches In some situations, a system admin may want to clear the caches, either for development/testing or because a misconfiguration has made it into the system. This introduces a way for system admins to perform cache resets. This required a bit of a refactor of the cacher, separating the namespace property from the actual key value. * Update descriptions * Use public_keys
- Loading branch information
Showing
32 changed files
with
393 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{define "admin/caches/index"}} | ||
|
||
{{$caches := .caches}} | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
{{template "head" .}} | ||
</head> | ||
|
||
<body class="tab-content"> | ||
{{template "admin/navbar" .}} | ||
|
||
<main role="main" class="container"> | ||
{{template "flash" .}} | ||
|
||
<div class="card mb-3 shadow-sm"> | ||
<div class="card-header">Caches</div> | ||
<ul class="list-group list-group-flush"> | ||
{{range $k, $cache := $caches}} | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
<div> | ||
<h5 class="mb-1">{{$cache.Name}}</h5> | ||
<small>{{$cache.Description}}</small> | ||
</div> | ||
<a href="/admin/caches/clear/{{$k}}" | ||
data-method="POST" | ||
data-confirm="Are you sure you want to clear the {{$cache.Name}} cache?" | ||
class="btn btn-danger"> | ||
Clear | ||
</a> | ||
</li> | ||
{{end}} | ||
</ul> | ||
</div> | ||
</main> | ||
|
||
{{template "scripts" .}} | ||
</body> | ||
</html> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.