Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4dbdfeeb
Commit
4dbdfeeb
authored
Feb 24, 2014
by
Angie Byron
Browse files
Issue
#2198339
by damiankloip: Remove cache.inc.
parent
b9f1a8e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
4dbdfeeb
...
...
@@ -1797,7 +1797,6 @@ function _drupal_bootstrap_kernel() {
function
_drupal_bootstrap_page_cache
()
{
global
$user
;
require_once
__DIR__
.
'/cache.inc'
;
require_once
__DIR__
.
'/database.inc'
;
// Check for a cache mode force from settings.php.
if
(
settings
()
->
get
(
'page_cache_without_database'
))
{
...
...
core/includes/cache.inc
deleted
100644 → 0
View file @
b9f1a8e2
<?php
/**
* @file
* Functions and interfaces for cache handling.
*/
use
Drupal\Core\Cache\Cache
;
/**
* Instantiates and statically caches the correct class for a cache bin.
*
* By default, this returns an instance of the Drupal\Core\Cache\DatabaseBackend
* class.
*
* Classes implementing Drupal\Core\Cache\CacheBackendInterface can register
* themselves both as a default implementation and for specific bins.
*
* @param $bin
* The cache bin for which the cache object should be returned, defaults to
* 'cache'.
*
* @return \Drupal\Core\Cache\CacheBackendInterface
* The cache object associated with the specified bin.
*
* @see \Drupal\Core\Cache\CacheBackendInterface
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::cache().
*/
function
cache
(
$bin
=
'cache'
)
{
return
\
Drupal
::
cache
(
$bin
);
}
/**
* Marks cache items from all bins with any of the specified tags as invalid.
*
* Many sites have more than one active cache backend, and each backend my use
* a different strategy for storing tags against cache items, and invalidating
* cache items associated with a given tag.
*
* When invalidating a given list of tags, we iterate over each cache backend,
* and call invalidateTags() on each.
*
* @param array $tags
* The list of tags to invalidate cache items for.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Core\Cache\Cache::invalidateTags().
*/
function
cache_invalidate_tags
(
array
$tags
)
{
Cache
::
invalidateTags
(
$tags
);
}
core/includes/install.core.inc
View file @
4dbdfeeb
...
...
@@ -296,7 +296,6 @@ function install_begin_request(&$install_state) {
require_once
__DIR__
.
'/install.inc'
;
require_once
__DIR__
.
'/schema.inc'
;
require_once
__DIR__
.
'/../../'
.
settings
()
->
get
(
'path_inc'
,
'core/includes/path.inc'
);
require_once
__DIR__
.
'/cache.inc'
;
require_once
__DIR__
.
'/database.inc'
;
require_once
__DIR__
.
'/form.inc'
;
require_once
__DIR__
.
'/batch.inc'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment