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
Commits
c1f08bfb
Verified
Commit
c1f08bfb
authored
7 months ago
by
Alberto Paderno
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3462686
: Use dt() with the strings passed to drush_log()
parent
67463567
No related branches found
No related tags found
1 merge request
!12
Issue #3462686: Use dt() with the strings passed to drush_log()
Pipeline
#228999
passed
7 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drupal_apc_cache.inc
+19
-4
19 additions, 4 deletions
drupal_apc_cache.inc
with
19 additions
and
4 deletions
drupal_apc_cache.inc
+
19
−
4
View file @
c1f08bfb
...
...
@@ -380,13 +380,19 @@ public static function remoteFlush() {
global
$base_url
;
if
(
!
module_exists
(
'apc'
))
{
drush_log
(
'You need to enable the APC module for remote cache clearing to work. Run drush pm-enable apc.'
,
'error'
);
drush_log
(
dt
(
'You need to enable the APC module for remote cache clearing to work. Run drush pm-enable apc.'
),
'error'
);
return
;
}
if
(
!
empty
(
self
::
$remoteRequests
))
{
if
(
$base_url
==
'http://'
.
basename
(
conf_path
()))
{
drush_log
(
'$base_url might not be set correctly. Try using the -l/--uri option for Drush.'
,
'warning'
);
drush_log
(
dt
(
'$base_url might not be set correctly. Try using the -l/--uri option for Drush.'
),
'warning'
);
}
// Optimize '*' clears.
...
...
@@ -409,10 +415,19 @@ public static function remoteFlush() {
$response
=
xmlrpc
(
$uri
,
$args
);
if
(
$response
===
FALSE
)
{
drush_log
(
'apc.clear_cache: '
.
xmlrpc_error_msg
()
.
' ('
.
xmlrpc_errno
()
.
')'
,
'error'
);
drush_log
(
dt
(
'apc.clear_cache: %err_msg (%err_no)'
,
array
(
'%err_msg'
=>
xmlrpc_error
(),
'%err_no'
=>
xmlrpc_errno
())
),
'error'
);
}
else
{
drush_log
(
"apc.clear_cache: The cache has been cleared."
,
'success'
);
drush_log
(
dt
(
"apc.clear_cache: The cache has been cleared."
),
'success'
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment