kernel/private/rest/classes/controllers/rest_controller.php
private function generateCacheId()
    {
        $routingInfos = $this->getRouter()->getRoutingInformation();

        $aCacheId = array(
            ezpRestPrefixFilterInterface::getApiProviderName(),
            ezpRestPrefixFilterInterface::getApiVersion(),
            $routingInfos->controllerClass,
            $routingInfos->action
        );
        // Add internal variables, caught in the URL. See ezpRestHttpRequestParser::fillVariables()
        // Also add content variables
        foreach ( $this->request->contentVariables + $this->request->variables as $name => $val )
        {
            $aCacheId[] = $name . '=' . ( is_array( $val ) ? implode( ',', $val ) : $val );
        }

        return md5( implode( '-', $aCacheId ) );
    }
private function generateCacheId()
    {
        $routingInfos = $this->getRouter()->getRoutingInformation();

        $aCacheId = array(
            ezpRestPrefixFilterInterface::getApiProviderName(),
            ezpRestPrefixFilterInterface::getApiVersion(),
            $routingInfos->controllerClass,
            $routingInfos->action
        );
        // Add internal variables, caught in the URL. See ezpRestHttpRequestParser::fillVariables()
        // Also add content variables
        foreach ( $this->request->contentVariables + $this->request->variables as $name => $val )
        {
            $aCacheId[] = $name . '=' . ( is_array( $val ) ? implode( ',', $val ) : $val );
        }

        return md5( implode( '-', $aCacheId ) );
    }
private function generateCacheId ( ) { $ routingInfos = $ this -> getRouter ( ) -> getRoutingInformation ( ) ; $ aCacheId = array ( ezpRestPrefixFilterInterface :: getApiProviderName ( ) , ezpRestPrefixFilterInterface :: getApiVersion ( ) , $ routingInfos -> controllerClass , $ routingInfos -> action ) ; // Add internal variables, caught in the URL. See ezpRestHttpRequestParser::fillVariables() // Also add content variables foreach ( $ this -> request -> contentVariables + $ this -> request -> variables as $ name => $ val ) { $ aCacheId [ ] = $ name . '=' . ( is_array ( $ val ) ? implode ( ',' , $ val ) : $ val ) ; } return md5 ( implode ( '-' , $ aCacheId ) ) ; }
Generates unique cache ID for current request.

The cache ID is a MD5 hash and takes into account :
- API Name
- API Version
- Controller class
- Action
- Internal variables (passed parameters, ResponseGroups...)
- Content variables (Translation...)

@return string
Generates unique cache ID for current request .