Skip to content

Commit

Permalink
add default config for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jul 15, 2024
1 parent e910ff6 commit 0f6c504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/cache.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public static function clean(){
}

public static function fetch($_key){
$sql = 'SELECT ' . DB::buildField('cache') . '
$sql = 'SELECT `key`,`datetime`,`value`,`lifetime`
FROM cache
WHERE `key`=:key';
$return = DB::Prepare($sql,array('key' => $_key), DB::FETCH_TYPE_ROW, PDO::FETCH_CLASS,'cache');
Expand Down
1 change: 1 addition & 0 deletions core/config/default.config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ network::localip = "127.0.0.1;192.168.*.*;10.*.*.*;172.*.*.*"
;Cache
lifetimeMemCache= 300
cache::engine=FilesystemCache
cache::redisaddr=127.0.0.1
cache::redisport=6379
cache::memcacheport=11211

Expand Down

0 comments on commit 0f6c504

Please sign in to comment.