Croogo is slow at serving files + problem with streaming mp4/ogv/flv thru Croogo

74 views
Skip to first unread message

Thib

unread,
Mar 19, 2012, 4:48:34 AM3/19/12
to cro...@googlegroups.com
Helllo,

Well I suppose the issue has something to do with caching but I don't know how to resolve it.
Tiny image files can take up to 6 seconds to load.

Once everything is cached it goes to acceptable loading times (30ms average).
If I edit a CSS file, cache is reconstructed.

How do I exclude image files, CSS or video files from caching ?

Thibault

Marián Václavík

unread,
Mar 19, 2012, 1:20:00 PM3/19/12
to cro...@googlegroups.com
Hi.

I assume you use Croogo 1.3.
I'm a total newbie to CakePHP and Croogo in general, but thanks for this question, I improved my site a bit :)

 Cache::config('default', array(
         'engine' => 'File', //[required]
         'duration'=> 600, //[optional]
         'probability'=> 50, //[optional]
         'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
          'prefix' => 'cake_', //[optional]  prefix every cache file with this string
          'lock' => false, //[optional]  use file locking
          'serialize' => true,
     ));

I uncommented this code in core.php file and played around with it.
You should do the same, and if it still does not help, we can wait until someone wiser shows up :)

Cheers,
Marian Vaclavik


--
You received this message because you are subscribed to the Croogo mailing list.
To post to this group, send email to cro...@googlegroups.com
To unsubscribe from this group, send email to
croogo+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/croogo?hl=en
Visit the official website at http://www.croogo.org

Thib

unread,
Mar 24, 2012, 8:33:03 AM3/24/12
to cro...@googlegroups.com
Hello

Thib

unread,
Mar 24, 2012, 8:40:03 AM3/24/12
to cro...@googlegroups.com
Hello Marian,

Yes indeed I'm working with 1.3.

I stil not played with caching cause I had to work on other projects. Now I'm back again :)

What I don't get is why "dumb files" should ever be cached by Cakephp or Croogo.
Correct me if I'm wrong but style.css or logo.png have no gain to be copied elsewhere. It will perform really better if the web server takes care of it alone.

IMO the issue comes from Croogo configuration because I never encountered that problem with other Cake projects.

Any idea how I can achieve that ?

Thanks,
Thib

Thib

unread,
Apr 16, 2012, 10:23:32 AM4/16/12
to cro...@googlegroups.com
Croogo community isn't that active. Is it dying ?


Le lundi 19 mars 2012 09:48:34 UTC+1, Thib a écrit :

Jonas Hartmann

unread,
Apr 16, 2012, 10:40:03 AM4/16/12
to cro...@googlegroups.com
Croogo is still a CakePHP app. Try getting knowledge on CakePHP.
--
Reply all
Reply to author
Forward
0 new messages