diff --git a/modules/base/classes/cache.php b/modules/base/classes/cache.php index 1810b77c..a7c3c4cd 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 06220892..6bec9f7a 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 4c4b014c..c84ec727 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); }