Creates a URL for cached data.
public static getCacheUrl ( string $type, array $params = [] ) : Horde_Url | ||
$type | string | The cache type ('app', 'css', 'js'). |
$params | array | Optional parameters: - app: REQUIRED for $type == 'app'. Identifies the application to call the 'cacheOutput' API call, which is passed in the value of the entire $params array (which may include parameters other than those listed here). The return from cacheOutput should be a 2-element array: 'data' (the cached data) and 'type' (the content-type of the data). - cid: REQUIRED for $type == 'css' || 'js'. The cacheid of the data (stored in Horde_Cache). - nocache: If true, sets the cache limiter to 'nocache' instead of the default 'public'. |
return | Horde_Url | The URL to the cache page. |