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
ac854285
Commit
ac854285
authored
Apr 23, 2015
by
Nathaniel Catchpole
Browse files
Issue
#2476247
by alexpott, mpdonadio: rebuild.php clears APU user cache w/o access check
parent
98056601
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/rebuild.php
View file @
ac854285
...
...
@@ -20,11 +20,6 @@
// Change the directory to the Drupal root.
chdir
(
'..'
);
// Clear the APC cache to ensure APC class loader is reset.
if
(
function_exists
(
'apc_fetch'
))
{
apc_clear_cache
(
'user'
);
}
$autoloader
=
require_once
__DIR__
.
'/vendor/autoload.php'
;
require_once
__DIR__
.
'/includes/utility.inc'
;
...
...
@@ -47,7 +42,13 @@
((
REQUEST_TIME
-
$request
->
get
(
'timestamp'
))
<
300
)
&&
(
$request
->
get
(
'token'
)
===
Crypt
::
hmacBase64
(
$request
->
get
(
'timestamp'
),
Settings
::
get
(
'hash_salt'
)))
))
{
// Clear the APC cache to ensure APC class loader is reset.
if
(
function_exists
(
'apc_clear_cache'
))
{
apc_clear_cache
(
'user'
);
}
if
(
function_exists
(
'apcu_clear_cache'
))
{
apcu_clear_cache
();
}
drupal_rebuild
(
$autoloader
,
$request
);
drupal_set_message
(
'Cache rebuild complete.'
);
}
...
...
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