Welcome Guest, Not a member yet? Register   Sign In
Application running very slow
#1

[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.
#2

[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
#3

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

Anyone knows about it?
#4

[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.
#5

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

InsiteFX
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB