Skip to content

Commit

Permalink
file cache fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Feb 1, 2022
1 parent 753ab96 commit c1c8234
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/base/classes/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function persistStats() {

function hash($id) {

return md5($id);
return md5( $id . OWA_AUTH_KEY );
}

function debug($msg) {
Expand Down
2 changes: 1 addition & 1 deletion modules/base/entities/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions modules/fileCache/classes/fileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class owa_fileCache extends owa_cacheType {

var $cache_dir;
var $lock_file_name = 'cache.lock';
var $cache_file_header = '<?php\n/*';
var $cache_file_footer = '*/\n?>';
var $cache_file_header = "<?php \n /*";
var $cache_file_footer = "*/ \n ?>";
var $file_perms = 0750;
var $dir_perms = 0750;
var $mutex;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit c1c8234

Please sign in to comment.