Back to ViewController class

Method _makeId

protected string
_makeId
(mixed $view, mixed $method)
Generate a view cache ID.
Parameters
  • object $view The view object to cache output for
  • string $method The method name to cache for the view object
Returns
  • string MD5 Hash
Since
  • 1.7.0

Method _makeId - Source code

/**
 * Generate a view cache ID.
 *
 * @param   object  $view    The view object to cache output for
 * @param   string  $method  The method name to cache for the view object
 *
 * @return  string  MD5 Hash
 *
 * @since   1.7.0
 */
protected function _makeId($view, $method)
{
    return md5(serialize(array(Cache::makeId(), \get_class($view), $method)));
}