Monday, September 5, 2011

The evil of Cache.check = true

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: