{"action":"opened","issue":{"number":3,"created_at":"2011-10-13T14:12:17Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I know that there was a patch for /app/code/community/Netzarbeiter/Cache/Model/Symlink.php however I feel as if there is still a bug here where if you have a cron job for cron.php or other cron jobs and it is running from outside the Magento root, you get the error \r\n\r\nPHP Fatal error:  Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir must be a directory' in /path/to/site/www/lib/Zend/Cache.php:209\r\nStack trace:\r\n#0 /path/to/site/www/lib/Zend/Cache/Backend/File.php(154): Zend_Cache::throwException('cache_dir must ...')\r\n#1 /path/to/site/www/lib/Zend/Cache/Backend/File.php(121): Zend_Cache_Backend_File->setCacheDir('var/cache')\r\n#2 /path/to/site/www/app/code/community/Netzarbeiter/Cache/Model/Symlink.php(45): Zend_Cache_Backend_File->__construct(Array)\r\n#3 /path/to/site/www/lib/Zend/Cache.php(153): Netzarbeiter_Cache_Model_Symlink->__construct(Array)\r\n#4 /path/to/site/www/lib/Zend/Cache.php(94): Zend_Cache::_makeBackend('Netzarbeiter_Ca...', Array, true, true)\r\n#5 /path/to/site/www/app/code/local/Mage/Core/Model/Cache.php(123): Zend_Cache::factory('Varien_Cache_Co...', 'Netzarbeiter_Ca...', Array, Array, true, true, true)\r\n#6 /path/to/site/www/app/code/core/Mage/Core/Model/Config.php(1206): Mage_Core_Model_Cache->__const in /path/to/site/www/lib/Zend/Cache.php on line 209\r\n\r\nI found that you are forced to set an absolute path in the local.xml for cache_dir, this is due to is_dir looking for the current working directory.\r\n\r\nI don't know if this is a bug and happens as intended but should probably be called out to people that if you plan on running cron jobs that don't cd into the Magento root, use an absolute path.","comments":0,"title":"Running Cron Job from outside Magento root","updated_at":"2011-10-13T14:12:17Z","url":"https://api.github.com/repos/Vinai/Symlink-Cache/issues/3","id":1900483,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"71fee070795a7146d81ac1d3f39a528b","avatar_url":"https://secure.gravatar.com/avatar/71fee070795a7146d81ac1d3f39a528b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/danmshields","id":1125720,"login":"danmshields"},"html_url":"https://github.com/Vinai/Symlink-Cache/issues/3","labels":[],"state":"open"},"legacy":{"number":3,"action":"opened","issue":1900483}}