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

Metrics

NetworkDLS TightWiki version @Model.ApplicationVersion

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
}

General

Pages Page Revisions Page Attachments Inter-Page Links
@Model.Metrics.Pages.ToString("N0") @Model.Metrics.PageRevisions.ToString("N0") @Model.Metrics.PageAttachments.ToString("N0") @Model.Metrics.IntraLinks.ToString("N0")
Page Tags Page Attachment Revisions Page Search Tokens Namespaces
@Model.Metrics.PageTags.ToString("N0") @Model.Metrics.PageAttachmentRevisions.ToString("N0") @Model.Metrics.PageSearchTokens.ToString("N0") @Model.Metrics.Namespaces.ToString("N0")
Users Profiles Exceptions  
@Model.Metrics.Users.ToString("N0") @Model.Metrics.Profiles.ToString("N0") @Model.Metrics.Exceptions.ToString("N0")  

Cache

@Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, "Flushing the memory cache will cause any cached items to be dropped and require database hits as pages are requested. Continue?", "Purge Memory Cache", "/Admin/PurgeMemoryCache", Context.Request.Path.Value))
Items Puts Gets Hits Misses Limit(MB)
@TightWiki.Caching.WikiCache.CacheItemCount.ToString("N0") @TightWiki.Caching.WikiCache.CachePuts.ToString("N0") @TightWiki.Caching.WikiCache.CacheGets.ToString("N0") @TightWiki.Caching.WikiCache.CacheHits.ToString("N0") @TightWiki.Caching.WikiCache.CacheMisses.ToString("N0") @NTDLS.Helpers.Formatters.FileSize((long)TightWiki.Caching.WikiCache.CacheMemoryLimit)