mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
Add comments to cache files
This commit is contained in:
parent
273671cf4e
commit
568151b5ee
3 changed files with 13 additions and 9 deletions
|
|
@ -230,18 +230,17 @@ class Cache
|
|||
*
|
||||
* @param string $key
|
||||
* @param string $group_name (optional)
|
||||
* @param bool $add_prefix (optional)
|
||||
* @return string
|
||||
*/
|
||||
public static function getRealKey($key, $group_name = null)
|
||||
public static function getRealKey($key, $group_name = null, $add_prefix = true)
|
||||
{
|
||||
if ($group_name)
|
||||
{
|
||||
$group_version = intval(self::get('#GROUP:' . $group_name . ':v'));
|
||||
return self::getCachePrefix() . '#GROUP:' . $group_name . ':' . $group_version . ':' . $key;
|
||||
}
|
||||
else
|
||||
{
|
||||
return self::getCachePrefix() . $key;
|
||||
$key = '#GROUP:' . $group_name . ':' . $group_version . ':' . $key;
|
||||
}
|
||||
|
||||
return ($add_prefix ? self::getCachePrefix() : '') . $key;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue