/// <summary> /// Handles the Click event of btnClearCache and clears the selected cache type. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void btnClearCache_Click(object sender, EventArgs e) { List <string> result = new List <string>(); if (ddlCacheTypes.SelectedValue == "all") { result = RockCache.ClearAllCachedItems(); } else { result.Add(RockCache.ClearCachedItemsForType(ddlCacheTypes.SelectedValue)); } PopulateCacheStatistics(); DisplayNotification(nbMessage, "All cached items have been cleared.", NotificationBoxType.Success); }