Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apc
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
apc
Merge requests
!11
Issue
#3462649
: Use xmlrpc_error() to return errors
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3462649
: Use xmlrpc_error() to return errors
issue/apc-3462649:3462649-use-xmlrpcerror
into
7.x-1.x
Overview
0
Commits
2
Pipelines
3
Changes
2
Merged
Alberto Paderno
requested to merge
issue/apc-3462649:3462649-use-xmlrpcerror
into
7.x-1.x
9 months ago
Overview
0
Commits
2
Pipelines
3
Changes
2
Expand
Closes
#3462649
0
0
Merge request reports
Compare
7.x-1.x
version 1
2e3f12e5
9 months ago
7.x-1.x (base)
and
latest version
latest version
ff770d83
2 commits,
9 months ago
version 1
2e3f12e5
1 commit,
9 months ago
2 files
+
10
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
apc.module
+
4
−
10
Options
@@ -67,7 +67,7 @@ function apc_xmlrpc() {
'apc.clear_cache'
,
'apc_clear_cache'
,
array
(
'
array
'
,
'
boolean
'
,
'string'
,
'array'
,
),
@@ -84,12 +84,9 @@ function apc_xmlrpc() {
*/
function
apc_clear_cache
(
$key
,
$bins
=
array
())
{
if
(
empty
(
$key
)
||
variable_get
(
'cron_key'
,
'drupal'
)
!=
$key
)
{
watchdog
(
'apc'
,
'An invalid key was passed to apc_clear_cache().'
,
array
(),
WATCHDOG_ERROR
);
watchdog
(
'apc'
,
'An invalid
auth
key was passed to apc_clear_cache().'
,
array
(),
WATCHDOG_ERROR
);
return
array
(
'success'
=>
FALSE
,
'message'
=>
t
(
'Invalid key for apc.clear_cache.'
),
);
return
xmlrpc_error
(
-
32602
,
t
(
'Invalid auth key for apc.clear_cache.'
));
}
// Clear the APCu cache.
@@ -100,10 +97,7 @@ function apc_clear_cache($key, $bins = array()) {
}
}
return
array
(
'success'
=>
TRUE
,
'message'
=>
t
(
'The cache has been cleared.'
),
);
return
TRUE
;
}
/**
Loading