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
a003b8af
Commit
a003b8af
authored
Feb 26, 2014
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `require_once` calls no longer needed because logic is simplified.
parent
2ab3df30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
index-wp-redis.php
index-wp-redis.php
+3
-11
No files found.
index-wp-redis.php
View file @
a003b8af
...
@@ -190,8 +190,6 @@ try {
...
@@ -190,8 +190,6 @@ try {
}
}
$redis
->
del
(
$GLOBALS
[
'wp_redis_cache_config'
][
'redis_key'
]
);
$redis
->
del
(
$GLOBALS
[
'wp_redis_cache_config'
][
'redis_key'
]
);
// require_once dirname( __FILE__ ) . '/wp-blog-header.php';
// This page is cached, the user isn't logged in, and it isn't a POST request, so let's use the cache
// This page is cached, the user isn't logged in, and it isn't a POST request, so let's use the cache
}
elseif
(
!
$is_post
&&
!
$logged_in
&&
$redis
->
exists
(
$GLOBALS
[
'wp_redis_cache_config'
][
'redis_key'
]
)
)
{
}
elseif
(
!
$is_post
&&
!
$logged_in
&&
$redis
->
exists
(
$GLOBALS
[
'wp_redis_cache_config'
][
'redis_key'
]
)
)
{
if
(
$GLOBALS
[
'wp_redis_cache_config'
][
'debug'
]
)
{
if
(
$GLOBALS
[
'wp_redis_cache_config'
][
'debug'
]
)
{
...
@@ -249,15 +247,9 @@ try {
...
@@ -249,15 +247,9 @@ try {
$redis
->
setex
(
$GLOBALS
[
'wp_redis_cache_config'
][
'redis_key'
],
$cache_duration
,
$markup_to_cache
);
$redis
->
setex
(
$GLOBALS
[
'wp_redis_cache_config'
][
'redis_key'
],
$cache_duration
,
$markup_to_cache
);
}
}
}
}
}
/*else {
}
require_once dirname( __FILE__ ) . '/wp-blog-header.php';
}
}*/
}
}
/*else {
require_once dirname( __FILE__ ) . '/wp-blog-header.php';
}*/
}
/*else {
require_once dirname( __FILE__ ) . '/wp-blog-header.php';
}*/
// The current request wasn't served from cache or isn't cacheable, so we pass off to WP
// The current request wasn't served from cache or isn't cacheable, so we pass off to WP
if
(
$load_wp
)
{
if
(
$load_wp
)
{
...
...
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