Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jul 15, 2024
1 parent 78b1d3f commit 0faa9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/cache.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ public static function clean() {
/* * *********************Methode d'instance************************* */

public function save() {
$this->setDatetime(date('Y-m-d H:i:s'));
if(config::byKey('cache::engine') == 'MariadbCache'){
return MariadbCache::save($this->getKey(),$this->getValue(),$this->getLifetime());
}
Expand All @@ -376,8 +377,7 @@ public function save() {
}
if(config::byKey('cache::engine') == 'FileCache'){
return FileCache::save($this->getKey(),$this->getValue(),$this->getLifetime());
}
$this->setDatetime(date('Y-m-d H:i:s'));
}
if ($this->getLifetime() == 0) {
return self::getCache()->save($this->getKey(), $this);
} else {
Expand Down

0 comments on commit 0faa9d8

Please sign in to comment.