mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-01-11 20:38:42 +00:00
Extended docs
This commit is contained in:
parent
6f1d7835d7
commit
8e1cee37fa
|
|
@ -1,8 +1,8 @@
|
|||
## Cache
|
||||
# Cache
|
||||
|
||||
For caching the `CacheManager` provides access to the caching systems in place. Out of the box the CacheManager supports and automatically initializes either Redis or Memcached depending on the client configuration. The caching is not mandatory and therfor shouldn't be missuesed as in-memory database. It is not necessary to check if Redis or Memcached are available the CacheManager automatically handles the caching based on their existence.
|
||||
|
||||
### HTTP Cache
|
||||
## HTTP Cache
|
||||
|
||||
By default only stylesheets, javascript and layout images as well as module images are cached. Everything else is considered volatile and not cached. If a response specific response should be cached feel free to use the response header:
|
||||
|
||||
|
|
@ -18,4 +18,12 @@ Example usage:
|
|||
|
||||
```
|
||||
$head->addAsset(AssetType::JS, $request->getUri()->getBase() . 'Modules/Media/Controller.js?v=' . self::MODULE_VERSION);
|
||||
```
|
||||
```
|
||||
|
||||
## FileCache
|
||||
|
||||
The `FileCache` provides file caching of data on a single file basis. Every cache object will be stored in a sperate file on the local file system. The file cache doesn't support remote caching. The `FileCache` serializes and unserializes the data/object by invoking the corresponding serialization and unserialization functions. Scalars and array will be handled by the cache internally.
|
||||
|
||||
### Storage
|
||||
|
||||
The cache key used will be used for the file storage. Invalid path characters used within the cache key will be replaced. The character `/` used inside the key string can be used to generate subdirectories in the cache directory.
|
||||
1
services/service_worker.md
Normal file
1
services/service_worker.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Service Worker
|
||||
Loading…
Reference in New Issue
Block a user