Hello,

I am newbie to this workgroup, have tried to search about problem but
cant find any solutions.
My problem is that cake didnt clear-update my cache file. For ex:

//Here i cache my action
function view_page(slug = null){
...
$this->cacheAction = "+1  day";
....

}

//Here trying to update record
function admin_edit_page(id = null){
 if(!empty($this->data)){

   $this->data['Page']['modified'] = time();

         if($this->Page->save($this->data)){

            $this->Session->setFlash('Puslapis: "'.$this->data['Page']
['page_name'].'" pakeistas.');
            $this->redirect("/admin/pages/view_pages/");
            exit;

          }
        if($id != null){
                $this->set('page',$this->Page->findById($id));
        }
  $this->set('list_data', $this->Page->Cat->generatetreelist(null,
'{n}.Cat.id', '{n}.Cat.cat_name', '-'));
}

But after update operation file in tmp/cache/view is still there. I
think that it should be deleted after update ? Dont know how cake
recognises file which it should delete, by url? if so maybe problem
that i am using slugs and translate behaviour. my url's look /eng/page/
testpage, and in cache dir file look
"mano_lit_page_kontaktai.php"  (mano) is subfolder in server docs
root.

Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to