-1
在我的控制器我緩存一些paginatedata。刷新後(f5),我只從cachequeryfile中獲取數據,但在視圖中丟失了所有其他數據。
爲什麼?cakephp +緩存查詢+刷新後丟失除了cachedata的所有數據
cachingmethod:文件
cakeversion:1.2.5
codeexample:
$url="home_page_1";
if(!Cache::read($url)){
$data = $this->paginate('Article');
Cache::write($url, $data);
}
$data = Cache::read($url);
感謝漢斯邁爾
能否請您詳細闡述,解釋使用的緩存類型並提供一些代碼? – deizel 2009-11-09 14:27:32
更新我的帖子中的代碼... – 2009-11-10 09:36:48