/// <summary> Refresh the hierarchy of non-aggregational web content pages by pulling the data back from the database </summary> /// <returns> TRUE if successful, otherwise FALSE </returns> public static bool RefreshWebContentHierarchy() { try { lock (webContentHierarchyLock) { // Either create a new hierarchy object , or clear the existing if (webContentHierarchy == null) { webContentHierarchy = new WebContent_Hierarchy(); } else { webContentHierarchy.Clear(); } if (!Engine_Database.WebContent_Populate_All_Hierarchy(webContentHierarchy, null)) { webContentHierarchy = null; return(false); } } return(true); } catch { return(false); } }
/// <summary> Clear the cached web content hierarchy data </summary> public static void WebContent_Hierarchy_Clear() { webContentHierarchy = null; }