RainLab\Translate\Models\Locale::clearCache PHP Метод

clearCache() публичный статический Метод

Clears all cache keys used by this model
public static clearCache ( ) : void
Результат void
    public static function clearCache()
    {
        Cache::forget('rainlab.translate.locales');
        Cache::forget('rainlab.translate.defaultLocale');
    }

Usage Example

Пример #1
0
 public function onDelete()
 {
     LocaleModel::clearCache();
     $this->asExtension('FormController')->update_onDelete(post('record_id'));
     return $this->listRefresh();
 }