Elgg
Version 2.3
|
Public Member Functions | |
__construct (Application $app, Config $config, $server_vars) | |
Constructor. More... | |
handleRequest ($path) | |
Handle a request for a cached view. More... | |
parsePath ($path) | |
Parse a request. More... | |
Static Public Attributes | |
static | $extensions |
static | $utf8_content_types |
Protected Member Functions | |
isCacheableView ($view) | |
Is the view cacheable. More... | |
setupSimplecache () | |
Do a minimal engine load. More... | |
sendCacheHeaders ($etag) | |
Send cache headers. More... | |
sendRevalidateHeaders ($etag) | |
Send revalidate cache headers. More... | |
handle304 ($etag) | |
Send a 304 and exit() if the ETag matches the request. More... | |
getContentType ($view) | |
Get the content type. More... | |
getProcessedView ($view, $viewtype) | |
Get the contents of a view for caching. More... | |
renderView ($view, $viewtype) | |
Render a view for caching. More... | |
send403 ($msg='Cache error:bad request') | |
Send an error message to requestor. More... | |
Definition at line 15 of file CacheHandler.php.
Elgg\Application\CacheHandler::__construct | ( | Application | $app, |
Config | $config, | ||
$server_vars | |||
) |
Constructor.
Application | $app | Elgg Application |
Config | $config | Elgg configuration |
array | $server_vars | Server vars |
Definition at line 63 of file CacheHandler.php.
|
protected |
Get the content type.
string | $view | The view name |
Definition at line 309 of file CacheHandler.php.
|
protected |
Get the contents of a view for caching.
string | $view | The view name |
string | $viewtype | The viewtype |
Definition at line 353 of file CacheHandler.php.
|
protected |
Send a 304 and exit() if the ETag matches the request.
string | $etag | ETag value |
Definition at line 289 of file CacheHandler.php.
Elgg\Application\CacheHandler::handleRequest | ( | $path | ) |
Handle a request for a cached view.
array | $path | URL path |
Definition at line 75 of file CacheHandler.php.
|
protected |
Is the view cacheable.
Language views are handled specially.
string | $view | View name |
Definition at line 202 of file CacheHandler.php.
Elgg\Application\CacheHandler::parsePath | ( | $path | ) |
Parse a request.
string | $path | Request URL path |
Definition at line 171 of file CacheHandler.php.
|
protected |
Render a view for caching.
Language views are handled specially.
string | $view | The view name |
string | $viewtype | The viewtype |
Definition at line 372 of file CacheHandler.php.
|
protected |
Send an error message to requestor.
string | $msg | Optional message text |
Definition at line 406 of file CacheHandler.php.
|
protected |
Send cache headers.
string | $etag | ETag value |
Definition at line 263 of file CacheHandler.php.
|
protected |
Send revalidate cache headers.
string | $etag | ETag value |
Definition at line 276 of file CacheHandler.php.
|
protected |
|
static |
Definition at line 17 of file CacheHandler.php.
|
static |
Definition at line 39 of file CacheHandler.php.