extension setting used the database class instead of the extension_setting class causing not to clear the cache