Source of file VersionedCacheAdapter.php
Size: 0,470 Bytes - Last Modified: 2021-12-23T10:35:47+00:00
/var/www/docs.ssmods.com/process/src/src/Caching/VersionedCacheAdapter.php
12345678910111213141516171819202122232425 | <?php namespace SilverStripe\Versioned\Caching; use SilverStripe\Versioned\Versioned; class VersionedCacheAdapter extends ProxyCacheAdapter { /** * Ensure keys are segmented based on reading mode * * @param string $key * @return string */ protected function getKeyID($key) { $state = Versioned::get_reading_mode(); if ($state) { return $key . '_' . md5($state); } return $key; } } |