rest.ini [CacheSettings]
The block [CacheSettings] of settings/rest.ini, with 5 setting(s).
Never edit settings/rest.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/rest.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/rest.ini.append.phpfor one siteaccess,extension/<extension>/settings/rest.ini.append.phpin an extension (read when the extension is active).
ApplicationCache
Global switch to enable/disable REST application cache
Default: enabled.
# settings/override/rest.ini.append.php
[CacheSettings]
ApplicationCache=enabled
*/ ?>ApplicationCacheDefault
Default value if no specific value has been defined for your controller/action
If enabled, result of each service call will be cached
You can refine this with setting specific to your controller/action
The system will look for a [<controllerClass>_<action>_CacheSettings] block to check
if cache can be used, and if so, which TTL to use
If this block cannot be found, the system will search at the controller level,
and so look for a [<controllerClass>_CacheSettings] block.
See example block below for more information
Basically this setting allow you to activate the cache to your controllers/actions individually
Default: enabled.
# settings/override/rest.ini.append.php
[CacheSettings]
ApplicationCacheDefault=enabled
*/ ?>DefaultCacheTTL
Set default TTL to 10min, in seconds
Default: 600.
# settings/override/rest.ini.append.php
[CacheSettings]
DefaultCacheTTL=600
*/ ?>RouteApcCache
Example for action "viewContent", in "ezpRestContentController" controller class
[ezpRestContentController_viewContent_CacheSettings]
ApplicationCache=enabled
CacheTTL=3600
Below an example for every actions contained in "ezpRestContentController" controller class
[ezpRestContentController_CacheSettings]
ApplicationCache=enabled
CacheTTL=1200
Switch to enable/disable Routes cache with APC
Default: enabled.
# settings/override/rest.ini.append.php
[CacheSettings]
RouteApcCache=enabled
*/ ?>RouteApcCacheTTL
TTL for Route APC cache, in seconds
Default: 3600.
# settings/override/rest.ini.append.php
[CacheSettings]
RouteApcCacheTTL=3600
*/ ?>Related
Generated by ./console exp:help:examples from settings/rest.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.