Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WP Plugins
Redis Page Cache
Commits
0038c5fc
Commit
0038c5fc
authored
Feb 25, 2014
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further code cleanup
parent
0c4f0a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index-wp-redis.php
index-wp-redis.php
+2
-2
No files found.
index-wp-redis.php
View file @
0038c5fc
...
...
@@ -70,7 +70,7 @@ try {
echo
"<!-- using predis as a backup -->
\n
"
;
}
include_once
(
"
wp-content/plugins/wp-redis-cache/predis5.2.php
"
);
//we need this to use Redis inside of PHP
include_once
dirname
(
__FILE__
)
.
'/
wp-content/plugins/wp-redis-cache/predis5.2.php
'
);
//we need this to use Redis inside of PHP
$redis
=
new
Predis_Client
(
array
(
'host'
=>
$redis_server
,
'port'
=>
$redis_port
,
...
...
@@ -123,7 +123,7 @@ try {
// When a page displays after an "HTTP 404: Not Found" error occurs, do not cache
// When the search was used, do not cache
if
(
(
!
is_404
()
)
and
(
!
is_search
()
)
)
{
if
(
!
is_404
()
&&
!
is_search
()
)
{
if
(
$unlimited
)
{
$redis
->
set
(
$redis_key
,
$html_of_page
);
}
else
{
...
...
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