Skip to content

Commit 90c819d

Browse files
committed
Fixed incorrect cache expiration multiplier
1 parent d9e6c92 commit 90c819d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ObjectCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function get_object( $key = null, $callback, $cache_disabled = false ) {
2222

2323
$object_cache_group = self::$config->get( 'object_cache/group' ) ? self::$config->get( 'object_cache/group' ) : sanitize_title( self::$config->get( 'data/Name' ) );
2424
if( is_multisite() ) $object_cache_group .= '_' . get_current_blog_id();
25-
$object_cache_expire = ( is_int( self::$config->get( 'object_cache/expire_hours' ) ) ? self::$config->get( 'object_cache/expire_hours' ) : 24 ) * 86400; // Default to 24 hours
25+
$object_cache_expire = ( is_int( self::$config->get( 'object_cache/expire_hours' ) ) ? self::$config->get( 'object_cache/expire_hours' ) : 24 ) * 3600; // Default to 24 hours
2626

2727
$result = null;
2828

0 commit comments

Comments
 (0)