colinmollenhour / Cm_Cache_Backend_Redis

A Zend_Cache backend for Redis with full support for tags (works great with Magento)
Other
387 stars 142 forks source link

Fix inclusion in stats.php #108

Closed Koc closed 8 years ago

colinmollenhour commented 8 years ago

Did you copy stats.php to your Magento root? I just invoke it like so:

$ cd <magento_root>
$ php .modman/Cm_Cache_Backend_Redis/stats.php

I admit the script is not very flexible about file location but __DIR__ will resolve to the actual file location so as long as the cwd is the Magento root and you invoke the actual stats.php file or a symlink to it then it should work as-is.

Koc commented 8 years ago

Heh, you are right. Previously I've tryed cd .modman/Cm_Cache_Backend_Redis/, php stats.php it fails on inclusion of ./lib/Zend/Cache/Backend/Interface.php. Then I've copied stats.php to magento root and it fails on inclusion of Cm/Cache/Backend/Redis.php.