Definition at line 15 of file CacheHandler.php.
Elgg\Application\CacheHandler::__construct |
( |
Application |
$app, |
|
|
Config |
$config, |
|
|
|
$server_vars |
|
) |
| |
Elgg\Application\CacheHandler::getContentType |
( |
|
$view | ) |
|
|
protected |
Get the content type.
- Parameters
-
- Returns
- string|null
Definition at line 309 of file CacheHandler.php.
Elgg\Application\CacheHandler::getProcessedView |
( |
|
$view, |
|
|
|
$viewtype |
|
) |
| |
|
protected |
Elgg\Application\CacheHandler::handle304 |
( |
|
$etag | ) |
|
|
protected |
Send a 304 and exit() if the ETag matches the request.
- Parameters
-
- Returns
- void
Definition at line 289 of file CacheHandler.php.
Elgg\Application\CacheHandler::handleRequest |
( |
|
$path | ) |
|
Handle a request for a cached view.
- Parameters
-
- Returns
- void
Definition at line 75 of file CacheHandler.php.
Elgg\Application\CacheHandler::isCacheableView |
( |
|
$view | ) |
|
|
protected |
Is the view cacheable.
Language views are handled specially.
- Parameters
-
- Returns
- bool
Definition at line 202 of file CacheHandler.php.
Elgg\Application\CacheHandler::parsePath |
( |
|
$path | ) |
|
Parse a request.
- Parameters
-
string | $path | Request URL path |
- Returns
- array Cache parameters (empty array if failure)
Definition at line 171 of file CacheHandler.php.
Elgg\Application\CacheHandler::renderView |
( |
|
$view, |
|
|
|
$viewtype |
|
) |
| |
|
protected |
Render a view for caching.
Language views are handled specially.
- Parameters
-
string | $view | The view name |
string | $viewtype | The viewtype |
- Returns
- string
Definition at line 372 of file CacheHandler.php.
Elgg\Application\CacheHandler::send403 |
( |
|
$msg = 'Cache error: bad request' | ) |
|
|
protected |
Send an error message to requestor.
- Parameters
-
string | $msg | Optional message text |
- Returns
- void
Definition at line 406 of file CacheHandler.php.
Elgg\Application\CacheHandler::sendCacheHeaders |
( |
|
$etag | ) |
|
|
protected |
Elgg\Application\CacheHandler::sendRevalidateHeaders |
( |
|
$etag | ) |
|
|
protected |
Send revalidate cache headers.
- Parameters
-
- Returns
- void
Definition at line 276 of file CacheHandler.php.
Elgg\Application\CacheHandler::setupSimplecache |
( |
| ) |
|
|
protected |
Elgg\Application\CacheHandler::$extensions |
|
static |
static Elgg\Application\CacheHandler::$utf8_content_types |
|
static |
Initial value:= [
"text/css",
"text/html",
"application/javascript",
"image/svg+xml",
"text/xml",
]
Definition at line 39 of file CacheHandler.php.
The documentation for this class was generated from the following file: