Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
open-source
Guaraci WordPress Plugin
Commits
e00b6acc
Commit
e00b6acc
authored
Apr 28, 2020
by
Rafael Chaves Freitas
Browse files
use HOUR_IN_SECONDS constant instead of integer 3600
parent
0b73981c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
library/functions.php
library/functions.php
+1
-1
No files found.
library/functions.php
View file @
e00b6acc
...
...
@@ -117,7 +117,7 @@ function get_posts_ranking() {
}
// stores in cache for 1 hour
wp_cache_add
(
$cache_key
,
$ids
,
3600
);
wp_cache_add
(
$cache_key
,
$ids
,
HOUR_IN_SECONDS
);
}
//var_dump($ids);
...
...
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