|
Elgg
Version 6.3
|
Simplecache handler. More...
Public Member Functions | |
| __construct (protected Config $config, protected Request $request, protected SimpleCache $simplecache, ConfigTable $config_table) | |
| Constructor. More... | |
| handleRequest (Request $request, Application $app) | |
| Handle a request for a cached view. More... | |
| parsePath ($path) | |
| Parse a request. More... | |
| getContentType ($view) | |
| Get the content type. More... | |
| getViewFileType ($view) | |
| Returns the type of output expected from the view. More... | |
Static Public Attributes | |
| static | $extensions |
| static | $utf8_content_types |
Protected Member Functions | |
| isCacheableView ($view) | |
| Is the view cacheable. More... | |
| sendCacheHeaders ($etag, Response $response) | |
| Sets cache headers. More... | |
| setRevalidateHeaders ($etag, Response $response) | |
| Set revalidate cache headers. More... | |
| is304 ($etag) | |
| Send a 304 and exit() if the ETag matches the request. 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... | |
Protected Attributes | |
| bool | $simplecache_enabled |
Simplecache handler.
Definition at line 18 of file CacheHandler.php.
| Elgg\Application\CacheHandler::__construct | ( | protected Config | $config, |
| protected Request | $request, | ||
| protected SimpleCache | $simplecache, | ||
| ConfigTable | $config_table | ||
| ) |
| Elgg\Application\CacheHandler::getContentType | ( | $view | ) |
Get the content type.
| string | $view | The view name |
Definition at line 293 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 334 of file CacheHandler.php.
| Elgg\Application\CacheHandler::getViewFileType | ( | $view | ) |
Returns the type of output expected from the view.
| string | $view | The view name |
Definition at line 311 of file CacheHandler.php.
| Elgg\Application\CacheHandler::handleRequest | ( | Request | $request, |
| Application | $app | ||
| ) |
Handle a request for a cached view.
| Request | $request | Elgg request |
| Application | $app | Elgg application |
Definition at line 87 of file CacheHandler.php.
|
protected |
Send a 304 and exit() if the ETag matches the request.
| string | $etag | ETag value |
Definition at line 268 of file CacheHandler.php.
|
protected |
Is the view cacheable.
Language views are handled specially.
| string | $view | View name |
Definition at line 225 of file CacheHandler.php.
| Elgg\Application\CacheHandler::parsePath | ( | $path | ) |
Parse a request.
| string | $path | Request URL path |
Definition at line 192 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 364 of file CacheHandler.php.
|
protected |
Send an error message to requestor.
| string | $msg | Optional message text |
Definition at line 392 of file CacheHandler.php.
|
protected |
Sets cache headers.
| string | $etag | ETag value |
| Response | $response | the response to set the headers on |
Definition at line 242 of file CacheHandler.php.
|
protected |
Set revalidate cache headers.
| string | $etag | ETag value |
| Response | $response | the response to set the headers on |
Definition at line 256 of file CacheHandler.php.
|
static |
Definition at line 20 of file CacheHandler.php.
|
protected |
Definition at line 54 of file CacheHandler.php.
|
static |
Definition at line 45 of file CacheHandler.php.