protected function FileCache::getFilename

Return value

string

7 calls to FileCache::getFilename()
FileCache::doDelete in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/FileCache.php
Deletes a cache entry.
FilesystemCache::doContains in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/FilesystemCache.php
Test if an entry exists in the cache.
FilesystemCache::doFetch in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/FilesystemCache.php
Fetches an entry from the cache.
FilesystemCache::doSave in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/FilesystemCache.php
Puts data into the cache.
PhpFileCache::doContains in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/PhpFileCache.php
Test if an entry exists in the cache.

... See full list

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/FileCache.php, line 92

Class

FileCache
Base file cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function getFilename($id) {
  $path = implode(str_split(md5($id), 12), DIRECTORY_SEPARATOR);
  $path = $this->directory . DIRECTORY_SEPARATOR . $path;
  return $path . DIRECTORY_SEPARATOR . $id . $this->extension;
}