hi, thanks this is the code

<?php

class CategoriesController extends AppController
{

    var $name = 'Categories';
var $uses = array('Category','Image');

    var $components = array('Files');

    var $helpers = array('Tree','Form','Cache');

        var $cacheAction = array('testmenu'=>'600000');




        function testmenu()
        {
                $this->cacheAction = true;
                $this->layout='blank';
                $this->Category->recursive = 0;
                $this->set('data', $this->Category-
>findAll("Category.parent_id = '0' and Category.active = '1'",
array('name'), 'Category.sort'));
                $this->render();
        }


}






On May 2, 8:35 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> paste the controller code to the bin, you're not writing to the db ?
>
>
>
> On Fri, May 2, 2008 at 1:22 PM, robert123 <[EMAIL PROTECTED]> wrote:
>
> >  Yes it is 0, I am not debugging
>
> >  www.generics.ws
>
> >  On May 2, 6:54 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> >  > is debug = 0 ?
>
> > > On Fri, May 2, 2008 at 2:17 AM, robert123 <[EMAIL PROTECTED]> wrote:
>
> >  > >  I am using the latest  Cake build (1.2.0.6311 beta)
>
> >  > >  I have enable caching on my system by the two statement in the core
> >  > >  file
>
> >  > >  Configure::write('Cache.disable', false);
> >  > >  Configure::write('Cache.check', true);
>
> >  > >  The first time I accessed the url, a  cache view is generated in app
> >  > >  \tmp\cache\views.
> >  > >  But subsequently everytime I access same the url again, the same view
> >  > >  is regenerated again in the cache folder. The controller code is
> >  > >  executed and database is hit, Thus there is no improvement in
> >  > >  performance at all, anyone knows how to solve this issue? Thanks
>
> >  > >  www.generics.ws
> >  > >  www.genericsmed.com
>
> >  > --
> >  > Marcin Domanskihttp://kabturek.info
>
> --
> Marcin Domanskihttp://kabturek.info
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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