SobekCM.SobekCM_Page_Globals.Reset_Memory C# (CSharp) Method

Reset_Memory() private method

private Reset_Memory ( ) : void
return void
        private void Reset_Memory()
        {
            tracer.Add_Trace("SobekCM_Page_Globals.Reset_Memory", "Clearing cache and application of data");

            // Clear the cache
            CachedDataManager.Clear_Cache();

            // Clear the application portions as well
            HttpContext.Current.Application.RemoveAll();

            // Refresh the application settings
            UI_ApplicationCache_Gateway.ResetSettings();

            UI_ApplicationCache_Gateway.ResetAll();

            MicroserviceHandler.Clear();

            // Since this reset, send to the admin, memory management portion
            currentMode.Mode = Display_Mode_Enum.Internal;
            currentMode.Internal_Type = Internal_Type_Enum.Cache;
        }