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
e578f1b2
Commit
e578f1b2
authored
Feb 25, 2014
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct logic error when displaying ulimited caching setting
parent
5ddb5d98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wp-redis-cache/wp-redis-cache.php
wp-redis-cache/wp-redis-cache.php
+2
-2
No files found.
wp-redis-cache/wp-redis-cache.php
View file @
e578f1b2
...
...
@@ -150,7 +150,7 @@ class WP_Redis_Cache {
*/
public
function
register_options
()
{
register_setting
(
$this
->
ns
,
'wp-redis-cache-seconds'
,
'absint'
);
register_setting
(
$this
->
ns
,
'wp-redis-cache-unlimited'
,
'
is_bool
'
);
register_setting
(
$this
->
ns
,
'wp-redis-cache-unlimited'
,
'
absint
'
);
}
/**
...
...
@@ -183,7 +183,7 @@ class WP_Redis_Cache {
<input
type=
"text"
name=
"wp-redis-cache-seconds"
size=
"45"
value=
"
<?php
echo
(
int
)
get_option
(
'wp-redis-cache-seconds'
);
?>
"
/></p>
<p><strong>
Cache without expiration:
</strong><br
/>
If this option is set, the cache never expire. This option overides the setting
<em>
Duration of Caching in Seconds
</em>
.
<br
/>
<input
type=
"checkbox"
name=
"wp-redis-cache-unlimited"
size=
"45"
value=
"true"
<?php
checked
(
'true'
,
(
bool
)
get_option
(
'wp-redis-cache-unlimited'
)
);
?>
/></p>
<input
type=
"checkbox"
name=
"wp-redis-cache-unlimited"
value=
"1"
<?php
checked
(
true
,
(
bool
)
get_option
(
'wp-redis-cache-unlimited'
)
);
?>
/></p>
<p>
<?php
submit_button
();
?>
</p>
</form>
...
...
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