I've got a d7 site on a shameful shared hosting account.
Since I am a pseudo haxxor, I want to load up my front page view and manually output all of my nodes. My Front Page takes about 30 seconds to load in the worst case. I am tears.
Here is what I am doing:
$view = views_get_view_result('main_feed');
foreach($view as $item){
$node = node_load($item->nid,NULL, TRUE);
/* assorted display code */
}
Any thoughts? 2.7 trillion thanks to all!
EDIT:
Well @Druplaist was right - this SHOULD work - after reading my own question I thought "If somebody else were asking this, I'd suggest that the problem was inside of /* assorted display code */ - and it is - probably some truncating method I grabbed. It's still Drupal slow, but not 30 seconds till the server gets back to me slow.
Thanks for answering my stupid question, people!