Disable some safety features in the development mode

This commit is contained in:
2025-03-28 12:48:59 +01:00
parent 7b3cd4eb10
commit 1933521e0d
4 changed files with 24 additions and 6 deletions

View File

@ -35,6 +35,10 @@ class UupDumpCache {
}
public function get() {
if(!uupApiConfigIsTrue('production_mode')) {
return false;
}
$cacheFile = $this->cacheFile;
if(!file_exists($cacheFile)) {
@ -58,6 +62,10 @@ class UupDumpCache {
}
public function put($content, $validity) {
if(!uupApiConfigIsTrue('production_mode')) {
return false;
}
$cacheFile = $this->cacheFile;
$expires = $validity ? time() + $validity : false;