Closed (duplicate)
Project:
Cache Router
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2010 at 10:00 UTC
Updated:
21 Jul 2010 at 13:38 UTC
This is happening in Windows (XP SP3), not linux.
$Id: Cache.php,v 1.1.2.14 2009/09/05 13:03:25 slantview Exp $
warning: unlink(C:\www\tmp/cache_menu_lock) [function.unlink]: Permission denied in C:\www\sites\all\modules\cacherouter\Cache.php on line 124
Cache Router Config
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'apc',
'server' => array(),
'shared' => TRUE,
'prefix' => '',
'path' => 'files/filecache',
'static' => FALSE,
'fast_cache' => TRUE,
'shared' => TRUE,
),
'cache_form' => array(
'engine' => 'db',
),
);
Digging further I found out this line is causing problem -> Cache.php
Line : 61
$this->lock = $this->lock_dir . '/' . $this->prefix . $this->name .'_lock';
In windows if I replace the '/' with '\\' the issue is solved. Is there an OS check required for this line ?
Comments
Comment #1
getvipin commentedComment #2
steven jones commentedUsing Drupal 6.16 and the patch here:
#860222: Use the D6.16 locking layer
Would also fix this issue.
Comment #3
andypostDuplicate of #588820: Creating severe load on system by logging thousands of unlink errors in DB log
Don't use rc1 version, this already fixed in 6-dev