From c1c823445df7dc96ee940e340805a7ba7a538482 Mon Sep 17 00:00:00 2001 From: padams Date: Tue, 1 Feb 2022 23:02:25 +0000 Subject: [PATCH] file cache fixes. --- modules/base/classes/cache.php | 2 +- modules/base/entities/user.php | 2 +- modules/fileCache/classes/fileCache.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/base/classes/cache.php b/modules/base/classes/cache.php index 1810b77c5..a7c3c4cd9 100644 --- a/modules/base/classes/cache.php +++ b/modules/base/classes/cache.php @@ -277,7 +277,7 @@ function persistStats() { function hash($id) { - return md5($id); + return md5( $id . OWA_AUTH_KEY ); } function debug($msg) { diff --git a/modules/base/entities/user.php b/modules/base/entities/user.php index 062208924..6bec9f7ab 100644 --- a/modules/base/entities/user.php +++ b/modules/base/entities/user.php @@ -36,7 +36,7 @@ class owa_user extends owa_entity { function __construct() { $this->setTableName('user'); - $this->setCachable(); + // properties $this->properties['id'] = new owa_dbColumn; $this->properties['id']->setDataType(OWA_DTD_SERIAL); diff --git a/modules/fileCache/classes/fileCache.php b/modules/fileCache/classes/fileCache.php index 4c4b014cb..c84ec7277 100644 --- a/modules/fileCache/classes/fileCache.php +++ b/modules/fileCache/classes/fileCache.php @@ -34,8 +34,8 @@ class owa_fileCache extends owa_cacheType { var $cache_dir; var $lock_file_name = 'cache.lock'; - var $cache_file_header = ''; + var $cache_file_header = ""; var $file_perms = 0750; var $dir_perms = 0750; var $mutex; @@ -282,7 +282,7 @@ function deleteFiles($files) { if (!empty($files)) { foreach ($files as $file) { - $this->debug("About to unlink cache file: ".$file); + owa_coreAPI::debug("About to unlink cache file: ".$file); unlink($file); }