Home » Caching » Cache_Lite » Bug #5853
Cache_Lite::get() throwing errors on uncreated files
Details
| Submitted | 2005-11-02 22:29 UTC |
|---|---|
| From | joe at joestump dot net |
| Assigned | fab |
| Status | Closed |
| Package | Cache_Lite |
| PHP Version | 5.0.5 |
| OS | Debian GNU/Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-11-02 22:29 UTC] joe at joestump dot net
Description:
------------
Any reason when I do if ($data = $cache->get('myid')) { } I
get the following error:
Warning: fopen(/mnt/shakespeare/stage-new/www.enotes.com/
html/jax/../../files/xml/cache/cache_2/cache_2a/
cache_c21f969b5f03d33d43e04f8f136e7682_290d23cbf9294c9a0f3c5
032f0891aa0) [<a href='function.fopen'>function.fopen</a>]:
failed to open stream: No such file or directory in /mnt/
shakespeare/pear/Cache/Lite.php on line 688
I notice that errors are being suppressed on line 688 of
Cache/Lite.php on the fopen(), but it's still spitting out
this error (PHP 5).
Here are my Cache_Lite options:
private $cacheOptions = array('cacheDir' =>
XML_CACHE_PATH,
'lifeTime' => 21600,
'fileLocking' => false,
'hashedDirectoryLevel' =>
2);
After the initial load the cache file exists and everything
appears to work fine. This is only on the initial creation
of the cache file.
This is running over NFS. Works fine with a test script from
the CLI. Adding realpath() around my paths doesn't fix it
either.
[2005-11-03 17:32 UTC] fab at php dot net
which cache_lite version ?
[2005-11-03 17:47 UTC] joe at joestump dot net
Cache_Lite 1.5.2 stable
[2005-11-03 17:52 UTC] fab at php dot net
hum... can you try to store cache on a "non NFS" filesystem ?
[2005-11-03 18:03 UTC] joe at joestump dot net
That would result in something completely useless to me since
my entire setup (and most large scale setups) runs over NFS.
Besides when I turn hashDirectoryLevel to 0 it works fine.
[2005-11-03 19:28 UTC] fab at php dot net
can you (really) ___just try___ to store cache on a "non NFS" filesystem ? (I would like to determine if the problem is linked to NFS or not)
[2005-11-16 22:37 UTC] joe at joestump dot net
Figured it out. Not a problem in Cache_Lite.