CodeIgniter Forums
Application running very slow - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Application running very slow (/showthread.php?tid=37510)



Application running very slow - El Forum - 01-12-2011

[eluser]Rubiz'[/eluser]
Hello guys!

I developed a CodeIgniter solution, this is the URL http://baetaminhoto.com.br/, and it's running OK, but very slow. In this application I'm using database queries and SimplePie class to load news from several feeds. I'm also using swf objects to display iTunes podcasts.

These news loads in all pages like an include.

I wanna know why the application is running so slow... any suggestion? It's because of SimplePie object? SWF objects?

Thank you.


Application running very slow - El Forum - 01-12-2011

[eluser]tomcode[/eluser]
Guess it's the feeds, apparently You're waiting to send the page until You've fetched them all.

I'd show the page without feeds (using placeholders) and load the feeds into the placeholders from the page via ajax


Application running very slow - El Forum - 01-12-2011

[eluser]Rubiz'[/eluser]
Well, maybe SimplePie has any method who fetch results a better way to process faster?

Anyone knows about it?


Application running very slow - El Forum - 01-12-2011

[eluser]Georgi Budinov[/eluser]
Checkout if you set up SimplePie not to use caching ... more info here

Also if this is not the problem and you do not want to do it by ajax ... set up a cron that will fill the feeds in your db and on page load just load the data from you db.


Application running very slow - El Forum - 01-15-2011

[eluser]InsiteFX[/eluser]
You can also turn on the CodeIgniter Profiler to what is going on!

InsiteFX


Application running very slow - El Forum - 01-15-2011

[eluser]Rubiz'[/eluser]
Georgi Budinov, thank you, and all who replied, it was a cache problem.

I had to enable cache, make a root dir called "cache" and set 777 permission to that.

Thank you.