/** * Updates themes list and regenerates cache of each theme */ public function clearThemeCache() { $this->themeService->updateThemeList(); $this->themeService->processAllThemes(); if (OW::getConfig()->configExists("base", "cachedEntitiesPostfix")) { OW::getConfig()->saveConfig("base", "cachedEntitiesPostfix", UTIL_String::getRandomString()); } }