Skip to content

Commit c1c8234

Browse files
author
padams
committed
file cache fixes.
1 parent 753ab96 commit c1c8234

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

modules/base/classes/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function persistStats() {
277277

278278
function hash($id) {
279279

280-
return md5($id);
280+
return md5( $id . OWA_AUTH_KEY );
281281
}
282282

283283
function debug($msg) {

modules/base/entities/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class owa_user extends owa_entity {
3636
function __construct() {
3737

3838
$this->setTableName('user');
39-
$this->setCachable();
39+
4040
// properties
4141
$this->properties['id'] = new owa_dbColumn;
4242
$this->properties['id']->setDataType(OWA_DTD_SERIAL);

modules/fileCache/classes/fileCache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class owa_fileCache extends owa_cacheType {
3434

3535
var $cache_dir;
3636
var $lock_file_name = 'cache.lock';
37-
var $cache_file_header = '<?php\n/*';
38-
var $cache_file_footer = '*/\n?>';
37+
var $cache_file_header = "<?php \n /*";
38+
var $cache_file_footer = "*/ \n ?>";
3939
var $file_perms = 0750;
4040
var $dir_perms = 0750;
4141
var $mutex;
@@ -282,7 +282,7 @@ function deleteFiles($files) {
282282
if (!empty($files)) {
283283

284284
foreach ($files as $file) {
285-
$this->debug("About to unlink cache file: ".$file);
285+
owa_coreAPI::debug("About to unlink cache file: ".$file);
286286
unlink($file);
287287
}
288288

0 commit comments

Comments
 (0)