diff --git a/src/classes/site.ts b/src/classes/site.ts index 8e8e4ffde..86fc69c6d 100644 --- a/src/classes/site.ts +++ b/src/classes/site.ts @@ -208,7 +208,7 @@ export class CoreSite { protected wsProvider: CoreWSProvider; // Variables for the database. - static WS_CACHE_TABLE = 'ws_cache'; + static WS_CACHE_TABLE = 'wscache_2'; static CONFIG_TABLE = 'core_site_config'; // Versions of Moodle releases. diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 22062270c..8609022d6 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -425,7 +425,11 @@ export class CoreSitesProvider { 'SELECT id, data, key, expirationTime, NULL as component, NULL as componentId ' + 'FROM ' + oldTable); - return await db.dropTable(oldTable); + try { + await db.dropTable(oldTable); + } catch (error) { + // Error deleting old table, ignore. + } } } };