Neos\Neos\Service\XliffService::getCacheVersion PHP Method

getCacheVersion() public method

public getCacheVersion ( ) : integer
return integer The current cache version identifier
    public function getCacheVersion()
    {
        $version = $this->xliffToJsonTranslationsCache->get('ConfigurationVersion');
        if ($version === false) {
            $version = time();
            $this->xliffToJsonTranslationsCache->set('ConfigurationVersion', (string) $version);
        }
        return $version;
    }

Usage Example

 /**
  * @return string The current cache version identifier
  */
 public function render()
 {
     return $this->xliffService->getCacheVersion();
 }