Search for cache

Classes

NameLocationDescription
views_plugin_cacheplugins/views_plugin_cache.incThe base plugin to handle caching.
views_plugin_cache_noneplugins/views_plugin_cache_none.incCaching plugin that provides no caching at all.
views_plugin_cache_timeplugins/views_plugin_cache_time.incSimple caching of query results for Views displays.

Constants

NameLocationDescription
BLOCK_CACHE_GLOBALmodules/block/block.moduleThe block is the same for every user on every page where it is visible.
BLOCK_CACHE_PER_PAGEmodules/block/block.moduleThe block can change depending on the page being viewed.
BLOCK_CACHE_PER_ROLEmodules/block/block.moduleThe block can change depending on the roles the user viewing the page belongs to. This is the default setting, used when the block does not specify anything.
BLOCK_CACHE_PER_USERmodules/block/block.moduleThe block can change depending on the user viewing the page. This setting can be resource-consuming for sites with large number of users, and thus should only be used when BLOCK_CACHE_PER_ROLE is not sufficient.
BLOCK_NO_CACHEmodules/block/block.moduleThe block should not get cached. This setting should be used:
CACHE_AGGRESSIVEincludes/bootstrap.incIndicates that page caching is using "aggressive" mode. This bypasses loading any modules for additional speed, which may break functionality in modules that expect to be run on each page load.
CACHE_DISABLEDincludes/bootstrap.incIndicates that page caching is disabled.
CACHE_NORMALincludes/bootstrap.incIndicates that page caching is enabled, using "normal" mode.
CACHE_PERMANENTincludes/bootstrap.incIndicates that the item should never be removed unless explicitly told to using cache_clear_all() with a cache ID.
CACHE_TEMPORARYincludes/bootstrap.incIndicates that the item should be removed at the next general cache wipe.
DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHEincludes/bootstrap.incSecond bootstrap phase: try to call a non-database cache fetch routine.
DRUPAL_BOOTSTRAP_LATE_PAGE_CACHEincludes/bootstrap.incSixth bootstrap phase: load bootstrap.inc and module.inc, start the variable system and try to serve a page from the cache.

Files

NameLocationDescription
includes/cache-install.incincludes/cache-install.inc
includes/cache.incincludes/cache.inc
includes/cache.incincludes/cache.inccache.inc
plugins/views_plugin_cache.incplugins/views_plugin_cache.inc
plugins/views_plugin_cache_none.incplugins/views_plugin_cache_none.inc
plugins/views_plugin_cache_time.incplugins/views_plugin_cache_time.inc

Functions & methods

NameLocationDescription
block_flush_cachesmodules/block/block.moduleImplementation of hook_flush_caches().
cache_clear_allincludes/cache-install.inc
cache_clear_allincludes/cache.incExpire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page and cache_block tables.
cache_getincludes/cache-install.inc
cache_getincludes/cache.incReturn data from the persistent cache. Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.
cache_setincludes/cache-install.inc
cache_setincludes/cache.incStore data in the persistent cache.
devel_cache_clear./devel.moduleMenu callback; clears all caches, then redirects to the previous page.
drupal_build_css_cacheincludes/common.incAggregate and optimize CSS files, putting them in the files directory.
drupal_build_js_cacheincludes/common.incAggregate JS files, putting them in the files directory.
drupal_clear_css_cacheincludes/common.incDelete all cached CSS files.
drupal_clear_js_cacheincludes/common.incDelete all cached JS files.
drupal_clear_path_cacheincludes/common.incReset the static variable which holds the aliases mapped for this request.
drupal_flush_all_cachesincludes/common.incFlush all cached data on the site.
drupal_page_cache_headerincludes/bootstrap.incSet HTTP headers in preparation for a cached page response.
filter_format_allowcachemodules/filter/filter.moduleCheck if text in a certain input format is allowed to be cached.
form_get_cacheincludes/form.incFetch a form from cache.
form_set_cacheincludes/form.incStore a form in the cache.
hook_flush_cachesdeveloper/hooks/core.phpAdd a list of cache tables to be cleared.
menu_cache_clearincludes/menu.incClears the cached cached data for a single named menu.
menu_cache_clear_allincludes/menu.incClears all cached menu data. This should be called any time broad changes might have been made to the router items or menu links.
module_rebuild_cacheincludes/module.incRebuild the database cache of module files.
page_cache_fastpathdeveloper/hooks/core.phpOutputs a cached page.
page_get_cacheincludes/bootstrap.incRetrieve the current page from the cache.
page_set_cacheincludes/common.incStore the current page in the cache.
system_clear_cache_submitmodules/system/system.admin.incSubmit callback; clear system caches.
update_flush_cachesmodules/update/update.moduleImplementation of hook_flush_caches().
update_invalidate_cachemodules/update/update.moduleInvalidates all cached data relating to update status.
update_project_cachemodules/update/update.compare.incRetrieve data from {cache_update} or empty the cache when necessary.