Back to CacheStorage class

Method _getCacheId

protected string
_getCacheId
(mixed $id, mixed $group)
Get a cache ID string from an ID/group pair
Parameters
  • string $id The cache data ID
  • string $group The cache data group
Returns
  • string
Since
  • 1.7.0
Class: CacheStorage
Project: Joomla

Method _getCacheId - Source code

/**
 * Get a cache ID string from an ID/group pair
 *
 * @param   string  $id     The cache data ID
 * @param   string  $group  The cache data group
 *
 * @return  string
 *
 * @since   1.7.0
 */
protected function _getCacheId($id, $group)
{
    $name = md5($this->_application . '-' . $id . '-' . $this->_language);
    $this->rawname = $this->_hash . '-' . $name;
    return Cache::getPlatformPrefix() . $this->_hash . '-cache-' . $group . '-' . $name;
}