Can using RabbitMQ for cache clearing be a possible solution ? Maybe speed
up the write and perform cache clearing as an afterSave triggered
asynchronous event ?

On Tue, Sep 6, 2011 at 11:45 PM, mark_story <[email protected]> wrote:

> Because its globbing the disk for files to delete, and deleting them.
> With a slow disk or lots of files to delete that can get slow.
>
> -Mark
>
> On Sep 5, 6:11 pm, jodator <[email protected]> wrote:
> > Hi,
> >
> > I've just spend 40+ hours on deep debug my app, because all
> > Model::save actions where stupidly slow.
> >
> > For instance:
> > I had one action that copied some model's data with some associated
> > data and saved it as new instances.
> > Time with Cache.check = true - 130 seconds
> > Time with Cache.check = false - 0.6 second...
> >
> > The problem is execution time of glob() function inside clear_cache()
> > function from besics.php.
> >
> > I've left Cache.check set to true, when I was testing this
> > functionality, but my app doesn't use full view caching.
> >
> > I'm using cakphp1.2.*. My server is Debian (nginx, php-fpm, mysql)
> > running on VPS with Xen virtualization.
> >
> > Hope that helps someone...
> >
> > ps.: anyone have any idea why clear_cache is so slow?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to