1 views_plugin_display_block.inc views_plugin_display_block::block_caching_modes()

Provide a list of core's block caching modes.

File

core/modules/views/plugins/views_plugin_display_block.inc, line 199
Contains the block display plugin.

Class

views_plugin_display_block
The plugin that handles a block.

Code

function block_caching_modes() {
  return array(
    BACKDROP_NO_CACHE => t('Do not cache'),
    BACKDROP_CACHE_GLOBAL => t('Cache once for everything (global)'),
    BACKDROP_CACHE_PER_PAGE => t('Per page'),
    BACKDROP_CACHE_PER_ROLE => t('Per role'),
    BACKDROP_CACHE_PER_ROLE | BACKDROP_CACHE_PER_PAGE => t('Per role per page'),
    BACKDROP_CACHE_PER_USER => t('Per user'),
    BACKDROP_CACHE_PER_USER | BACKDROP_CACHE_PER_PAGE => t('Per user per page'),
  );
}