Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
Redis Page Cache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WP Plugins
Redis Page Cache
Commits
a934b065
Commit
a934b065
authored
Feb 26, 2014
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support custom exception handler in configuration block of plugin
parent
74fc0525
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
index-wp-redis.php
index-wp-redis.php
+6
-0
No files found.
index-wp-redis.php
View file @
a934b065
...
...
@@ -20,6 +20,11 @@ $GLOBALS['wp_redis_cache_config'] = array(
// $GLOBALS['wp_redis_cache_config']['cache_duration'] = 43200;
// $GLOBALS['wp_redis_cache_config']['unlimited'] = false;
// Modify this function to introduce custom handling when exceptions occur
function
wp_redis_cache_exception_handler
(
$exception
)
{
return
;
}
/**
* DO NOT EDIT BELOW THIS LINE!
*/
...
...
@@ -172,6 +177,7 @@ try {
}
}
catch
(
Exception
$e
)
{
require
dirname
(
__FILE__
)
.
'/wp-blog-header.php'
;
wp_redis_cache_exception_handler
(
$e
);
}
$end
=
microtime
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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