Caching KoHana缓存错误

Caching KoHana缓存错误,caching,kohana,Caching,Kohana,我试图调试一个kohana项目,该项目不适用于某些损坏的缓存文件 Cache_Exception [ 0 ]: Kohana_Cache_File::get corrupted cache file! MODPATH/cache/classes/kohana/cache/file.php [ 152 ] 147 $lifetime = $data->fgets(); 148 149 // If we're at the EO

我试图调试一个kohana项目,该项目不适用于某些损坏的缓存文件

Cache_Exception [ 0 ]: Kohana_Cache_File::get corrupted cache file!
MODPATH/cache/classes/kohana/cache/file.php [ 152 ]
147                 $lifetime = $data->fgets();
148 
149                 // If we're at the EOF at this point, corrupted!
150                 if ($data->eof())
151                 {
152                     throw new Cache_Exception(__METHOD__.' corrupted cache file!');
153                 }
154 
155                 $cache = '';
156 
157                 while ($data->eof() === FALSE)
APPPATH/classes/helper/dropdown.php [ 10 ] » Kohana_Cache_File->get(arguments)
APPPATH/views/search/index.php [ 36 ] » Helper_DropDown::states(arguments)
SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)
SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)
SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()
APPPATH/views/layouts/default.php [ 71 ] » Kohana_View->__toString()
SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)
SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)
SYSPATH/classes/kohana/controller/template.php [ 44 ] » Kohana_View->render()
APPPATH/classes/controller/common/base.php [ 35 ] » Kohana_Controller_Template->after()
{PHP internal call} » Controller_Common_Base->after()
SYSPATH/classes/kohana/request/client/internal.php [ 119 ] » ReflectionMethod->invoke(arguments)
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
SYSPATH/classes/kohana/request.php [ 1154 ] » Kohana_Request_Client->execute(arguments)
DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

这是跟踪日志。我无法理解如何进行此操作?

缓存文件是否存在?如果是,它是否包含任何数据?是的,它确实存在,并且在文件中缓存了ORM查询数据。您是否尝试清除缓存?每次生成文件时都会发生这种情况吗?请考虑创建以下的CLI命令: