Removes obsolete cachebrowser
This commit is contained in:
@@ -2103,7 +2103,6 @@
|
||||
<Content Include="Install\Steps\welcome.ascx">
|
||||
<SubType>UserControl</SubType>
|
||||
</Content>
|
||||
<Content Include="Umbraco\cacheBrowser.aspx" />
|
||||
<Content Include="Umbraco\Config\Create\UI.xml" />
|
||||
<Content Include="Umbraco\Config\Lang\en.xml">
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
<%@ Page language="c#" Codebehind="cacheBrowser.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.cacheBrowser" trace="true" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<title>cacheBrowser</title>
|
||||
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
|
||||
<meta content="C#" name="CODE_LANGUAGE">
|
||||
<meta content="JavaScript" name="vs_defaultClientScript">
|
||||
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
|
||||
</HEAD>
|
||||
<body>
|
||||
<form id="Form1" method="post" runat="server">
|
||||
<asp:Button id="Button1" runat="server" Text="Button" onclick="Button1_Click"></asp:Button>
|
||||
</form>
|
||||
</body>
|
||||
</HTML>
|
||||
@@ -591,9 +591,6 @@
|
||||
</Compile>
|
||||
<Compile Include="umbraco.presentation\MacroCacheContent.cs" />
|
||||
<Compile Include="umbraco.presentation\ScriptingMacroResult.cs" />
|
||||
<Compile Include="umbraco.presentation\umbraco\cacheBrowser.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="umbraco.presentation\umbraco\channels\wlwmanifest.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
using System.Collections;
|
||||
using umbraco.BasePages;
|
||||
|
||||
namespace umbraco.cms.presentation
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for cacheBrowser.
|
||||
/// </summary>
|
||||
public partial class cacheBrowser : UmbracoEnsuredPage
|
||||
{
|
||||
public cacheBrowser()
|
||||
{
|
||||
CurrentApp = BusinessLogic.DefaultApps.developer.ToString();
|
||||
|
||||
}
|
||||
protected void Page_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
// Cache removal checks
|
||||
if (Request.QueryString["clearByType"] != null)
|
||||
ApplicationContext.ApplicationCache.ClearCacheObjectTypes(Request.QueryString["clearByType"]);
|
||||
else if (Request.QueryString["clearByKey"] != null)
|
||||
ApplicationContext.ApplicationCache.ClearCacheItem(Request.QueryString["clearByKey"]);
|
||||
|
||||
// Put user code to initialize the page here
|
||||
Hashtable ht = cms.businesslogic.cache.Cache.ReturnCacheItemsOrdred();
|
||||
foreach (string key in ht.Keys)
|
||||
{
|
||||
Response.Write("<a href=\"?key=" + key + "\">" + key + "</a>: " + ((ArrayList)ht[key]).Count.ToString() + " (<a href=\"?clearByType=" + key + "\">Delete</a>)<br />");
|
||||
if (Request.QueryString["key"] == key)
|
||||
for (int i = 0; i < ((ArrayList)ht[key]).Count; i++)
|
||||
Response.Write(" - " + ((ArrayList)ht[key])[i] + " (<a href=\"?clearByKey=" + ((ArrayList)ht[key])[i] + "\">Delete</a>)<br />");
|
||||
}
|
||||
}
|
||||
protected void Button1_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
ApplicationContext.ApplicationCache.ClearAllCache();
|
||||
}
|
||||
|
||||
protected System.Web.UI.HtmlControls.HtmlForm Form1;
|
||||
protected System.Web.UI.WebControls.Button Button1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user