public void removeLanguage(Language l) { DotCacheAdministrator cache = CacheLocator.getCacheAdministrator(); long id = l.getId(); String idSt = String.valueOf(l.getId()); String languageKey = l.getLanguageCode() + "-" + l.getCountryCode(); cache.remove(getPrimaryGroup() + id, getPrimaryGroup()); cache.remove(getPrimaryGroup() + idSt, getPrimaryGroup()); cache.remove(getPrimaryGroup() + languageKey, getPrimaryGroup()); }
/* (non-Javadoc) * @see com.dotmarketing.business.PermissionCache#remove(java.lang.String) */ protected void remove(String key) { key = primaryGroup + key; try { cache.remove(key, primaryGroup); } catch (Exception e) { Logger.debug(this, "Cache not able to be removed", e); } }
@Override public void removeLanguageKeys(String langCode, String countryCode) { DotCacheAdministrator cache = CacheLocator.getCacheAdministrator(); String languageKey = getPrimaryGroup() + "_Keys_" + (countryCode != null ? langCode + "_" + countryCode : langCode); cache.remove(languageKey, getPrimaryGroup()); }