I've noticed that output code formatting could depends on the <?php ?> tags and it's line up with other html tags. If you want to make your output code cleaner and more compressed you can use mod_pagespeed from google or write an after_render action in app_controller to remove unnecessary spaces from HTML output - but you'll lose pretty formating on HTML output.
On Jan 15, 1:10 am, "Dave Maharaj" <[email protected]> wrote: > Ohh yes that’s what I do. I just flipped a view > source and noticed it. I > don’t usually look at the rendered code thru browser. Developer tools for > each browser for that stuff. > > Just something I noticed. > > Thanks,, > Dave > > -----Original Message----- > From: gremlin [mailto:[email protected]] > Sent: Friday, January 14, 2011 8:30 PM > To: CakePHP > Subject: Re: Server Preference? > > Use firebug / Safari inspector / Chrome inspector > View source is the tool of last resort - I honestly haven't hit view > source in a decent browser for years now. > > On Jan 14, 12:05 pm, "Dave Maharaj" <[email protected]> wrote: > > Thanks Miles. > > > I am sure any of the servers would work fine but each has its strengths, > > weaknesses and depending on the app and its functionality I figured there > > would be a better to go with one over another. > > > The site is still being built so I am testing it on different server > builds > > to test thing out. Currently on nginx fpm-php with APC and Memcache > > installed. I been testing the pages that would get the most hits > repeatedly > > over and over and its slower than Apache. Im still playing / messing > around > > so just seeing what others use. The plan is 25K+ a day but that’s > > hoping...reality could be more / less....who knows. > > > My biggest problem is caching the views. Data no problem but views are > > killing me. I need to come up with some way to save more data in cache / > > memory. > > > Side note: Is there an output setting for code to be cleaned / properly > > lined up? My view code is well tabbed / structured yet in the browser view > > source it’s a complete mess. 5 or 6 empty lines before and after lists. > Just > > weird ugly formatting. > > > Thanks, > > > Dave > > > -----Original Message----- > > From: Miles J [mailto:[email protected]] > > Sent: Friday, January 14, 2011 2:53 PM > > To: CakePHP > > Subject: Re: Server Preference? > > > Nginx is fast in general, who ever said it was for static content? I > > use Nginx with memcache/apc and get a good 10k hits a day with no > > speed penalty. > > > Want kind of traffic are you expecting where none of these would > > suffice? Even the largest of sites use apache. > > > On Jan 14, 2:29 am, "Dave Maharaj" <[email protected]> wrote: > > > I am trying to get the best suited server going for my app I am building > > and > > > so far > > > > From what I read: > > > > . Apache seems to be the dead horse / big and clumsy > > > > . Lighttpd is not as supported / updated as it once was > > > > . Nginx is fast with static content > > > > . Cherokee leaves me wondering. > > > > The site im working on has maybe 5 - 10 static nothing changing > pages(just > > > welcome / register / login / contact) but once you login everything is > > per > > > user since there are a lot of custom settings so caching pages / parts > > seems > > > like not the best solution for nginx (sure Apache backend but if 95% > would > > > be processed thru Apache whats the point for nginx for the few pages > > > really?) > > > > All my data / queries are cached for dynamic pages since each users > page > > > consists of various modules that constantly changing entire view caching > > is > > > impossible. > > > > So that basically leaves me with Cherokee left to try. Anyone use it? > > > Reviews? Good bad? > > > > I just installed nginx and tuned it up tried this and that, APC, > Memcache > > > but its not much faster pushing out my the dynamic content over Apache > so > > I > > > was thinking of giving Cherokee a go and just looking for opinions / > > > feedback? > > > > Thanks, > > > > Dave > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
