Translation/Translator.php
public function removeLocalesCacheFiles(array $locales)
    {
        foreach ($locales as $locale) {
            $this->removeCacheFile($locale);
        }

        // also remove database.resources.php cache file
        $file = sprintf('%s/database.resources.php', $this->options['cache_dir']);
        if (file_exists($file)) {
            $this->invalidateSystemCacheForFile($file);
            unlink($file);
        }

        $metadata = $file.'.meta';
        if (file_exists($metadata)) {
            $this->invalidateSystemCacheForFile($metadata);
            unlink($metadata);
        }
    }
public function removeLocalesCacheFiles(array $locales)
    {
        foreach ($locales as $locale) {
            $this->removeCacheFile($locale);
        }

        // also remove database.resources.php cache file
        $file = sprintf('%s/database.resources.php', $this->options['cache_dir']);
        if (file_exists($file)) {
            $this->invalidateSystemCacheForFile($file);
            unlink($file);
        }

        $metadata = $file.'.meta';
        if (file_exists($metadata)) {
            $this->invalidateSystemCacheForFile($metadata);
            unlink($metadata);
        }
    }
public function removeLocalesCacheFiles ( array $ locales ) { foreach ( $ locales as $ locale ) { $ this -> removeCacheFile ( $ locale ) ; } // also remove database.resources.php cache file $ file = sprintf ( '%s/database.resources.php' , $ this -> options [ 'cache_dir' ] ) ; if ( file_exists ( $ file ) ) { $ this -> invalidateSystemCacheForFile ( $ file ) ; unlink ( $ file ) ; } $ metadata = $ file . '.meta' ; if ( file_exists ( $ metadata ) ) { $ this -> invalidateSystemCacheForFile ( $ metadata ) ; unlink ( $ metadata ) ; } }
Remove the cache file corresponding to each given locale.

@param array $locales
Remove the cache file corresponding to each given locale .