function render_cache_cache_info_defaults in Render cache 7
Same name and namespace in other branches
- 7.2 render_cache.module \render_cache_cache_info_defaults()
Returns default values for cache info.
Return value
array
5 calls to render_cache_cache_info_defaults()
- render_cache_entity_view_callback in ./
render_cache.module - Override entity API rendering callback to add a caching layer.
- render_cache_get_entity_cid in ./
render_cache.module - Retrieve cache ID to use for entity render caching.
- render_cache_hijack_context_reaction_block::block_list_build in modules/
render_cache_context/ context/ plugins/ render_cache_hijack_context_reaction_block.inc - A caching version of block_list() .
- render_cache_hijack_context_reaction_block::render_cache_get_cid in modules/
render_cache_context/ context/ plugins/ render_cache_hijack_context_reaction_block.inc - Build the cache ID and cache information array.
- render_cache_view_field in ./
render_cache.module - Helper function to view a single entity field.
File
- ./
render_cache.module, line 259 - Hook implementations and frequently used functions for render cache module.
Code
function render_cache_cache_info_defaults() {
// Setup defaults.
return array(
'bin' => 'cache_render',
'expire' => CACHE_PERMANENT,
'granularity' => DRUPAL_CACHE_PER_ROLE,
// Use per role to support contextual and its safer anyway.
'keys' => array(),
// Special keys that are only related to our implementation.
'render_cache_render_to_markup' => FALSE,
);
}