     }()
     
     override func didReceiveMemoryWarning() {
-
         guard
             let dataStore = SessionSingleton.sharedInstance()?.dataStore,
             let articleCacheController = dataStore.articleCacheControllerWrapper.cacheController as? ArticleCacheController
         else {
             return
         }
-
         dataStore.savedPageList.enumerateItems { (article, stop) in
+                        
+
+// TODO:
+//            - pull this out to func (migrateFromMobileviewSavedDataIfNecessary) with completion
+//              block so can be used for if loading articles not yet converted
+//              (cacheFromMigration will need completion block)
+//            - rename mobileviewConversionAttempted to isConversionFromMobileviewNeeded and do one
+//              time update to set all existing to true, new ones would need to be false
+
+            
             guard let articleURL = article.url else {
                 assertionFailure("Could not get article url")
                 return

                    assertionFailure("mobileHTML not extracted")
                    return
                }
                
                
                articleCacheController.cacheFromMigration(desktopArticleURL: articleURL, content: mobileHTML, mimeType: "text/html")
            }
        }
    }
 
*/

            } catch let error {
                DDLogError("Error updating article: \(error)")
            }
            
            let mwkArticle = dataStore.article(with: articleURL)

            self.converter.convertMobileviewSavedDataToMobileHTML(article: mwkArticle) { (result, error) in
                
                let blastMobileviewSavedDataFolder = {
                    // Remove old mobileview saved data folder for this article
                    do {
                        try FileManager.default.removeItem(atPath: dataStore.path(forArticleURL: articleURL))
                    } catch {
                        DDLogError("Could not remove mobileview folder for articleURL: \(articleURL)")
                    }
                }
                
                let handleConversionFailure = {
                    // No need to keep mobileview section html if conversion failed, so ok to remove section data
                    // because we're setting `isDownloaded` next so saved article fetching will re-download from
                    // new mobilehtml endpoint.
                    blastMobileviewSavedDataFolder()

                    // If conversion failed above for any reason set "article.isDownloaded" to false so normal fetching logic picks it up
                    do {
                        article.isDownloaded = false
                        try dataStore.save()
                    } catch let error {
                        DDLogError("Error updating article: \(error)")
                    }
                }
                
                guard error == nil, let result = result else {
