Zend Cache - 删除缓存文件的问题

时间:2023-01-13 20:19:14

I have an strange problem with Zend Cacke (File Backend) running on linux with apache and php 5.2

我在使用apache和php 5.2在linux上运行的Zend Cacke(文件后端)有一个奇怪的问题

The files are stored in /myspace/tmp1

这些文件存储在/ myspace / tmp1中

Directory has the persmission:

目录有持久性:

drwxrwxrwx  2 nobody nogroup 8192 2010-09-20 13:35 tmp1

The created temp file has the following permissions:

创建的临时文件具有以下权限:

-rw------- 1 nobody nogroup  317 2010-09-20 13:40 content---a51607ba255692370eae1155c7f45856

If if i do:

如果我这样做:

$cache->clean(); inside my script, than the method returns true, but the file is not removed (no error in php error log).

$的cache>干净();在我的脚本中,该方法返回true,但文件未被删除(php错误日志中没有错误)。

On my local development machine running under win xp everything works fine. I think it is some kind of permission problem? The Apache is running as "nobody"

在我的本地开发机器上运行win xp一切正常。我认为这是某种许可问题? Apache正在运行为“nobody”

Any suggestions are welcome!

欢迎任何建议!

1 个解决方案

#1


0  

I think you need to use Zend_Cache::CLEANING_MODE_ALL as by default it cleans only outdated AFAIK.

我认为你需要使用Zend_Cache :: CLEANING_MODE_ALL,因为它默认只清理过时的AFAIK。

#1


0  

I think you need to use Zend_Cache::CLEANING_MODE_ALL as by default it cleans only outdated AFAIK.

我认为你需要使用Zend_Cache :: CLEANING_MODE_ALL,因为它默认只清理过时的AFAIK。