Please, move Settings::getSetting('system_theme') out of engine namespace, maybe add parameter for clearCache method (themeName = null)