@model TightWiki.Models.ViewModels.Admin.PageCompilationStatisticsViewModel @using TightWiki.Library @using TightWiki.Models @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

Compilations

The compilation statistics for all wiki page operations.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, "Purging the page compilation statistics will delete all of the stored compilation statistics for all pages. Continue?", "Purge Compilation Statistics", "/Admin/PurgeCompilationStatistics", Context.Request.Path.Value))

@if (Model.Statistics.Count > 0) { @foreach (var stat in Model.Statistics) { }
Name Date/Time Compilations Duration Matches Errors Links Tags Raw Size Wikified Size
@if (string.IsNullOrEmpty(@stat.Namespace) == false) { @stat.Namespace :: } @stat.Title @stat.LatestBuild @stat.Compilations.ToString("N0") @stat.AvgBuildTimeMs.ToString("N0")ms @stat.AvgWikiMatches.ToString("N0") @stat.TotalErrorCount.ToString("N0") @stat.AvgOutgoingLinkCount.ToString("N0") @stat.AvgTagCount.ToString("N0") @NTDLS.Helpers.Formatters.FileSize((long)stat.AvgRawBodySize) @NTDLS.Helpers.Formatters.FileSize((long)stat.AvgWikifiedBodySize)
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) }