mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
@using Orchard.OutputCache.ViewModels
|
|
@model StatisticsViewModel
|
|
|
|
@{
|
|
Layout.Title = T("Cache Statistics");
|
|
}
|
|
|
|
@using (Html.BeginFormAntiForgeryPost()) {
|
|
@Html.ValidationSummary()
|
|
<div class="manage">@Html.ActionLink(T("Evict All").ToString(), "EvictAll", new { Area = "Orchard.OutputCache", Controller = "Statistics" }, new { @class = "button primaryAction", itemprop = "UnsafeUrl" })</div>
|
|
}
|
|
|
|
<h2>@T("Cached pages")</h2>
|
|
<table class="items">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">@T("Url")</th>
|
|
<th scope="col">@T("Cache Key")</th>
|
|
<th scope="col">@T("Cached On")</th>
|
|
<th scope="col">@T("Cached Until")</th>
|
|
<th scope="col"> </th>
|
|
</tr>
|
|
</thead>
|
|
@foreach (var cacheItem in Model.CacheItems) {
|
|
<tr>
|
|
<td><span title="@cacheItem.QueryString">@cacheItem.Url</span></td>
|
|
<td>@cacheItem.CacheKey</td>
|
|
<td>@Display.DateTimeRelative(DateTimeUtc: cacheItem.CachedOnUtc)</td>
|
|
<td>@cacheItem.ValidUntilUtc.ToLocalTime()</td>
|
|
<td>@Html.ActionLink(T("Evict").Text, "Evict", new { Area = "Orchard.OutputCache", Controller = "Statistics", cacheKey = cacheItem.CacheKey })</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
|
|
@Display(Model.Pager)
|
|
|
|
|