1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.0 Real-World Page Loading Speed

Discussion in 'Have You Seen...?' started by Kier, Aug 4, 2010.

  1. Erik

    Erik Well-Known Member

    Server hardware:
    http://xenforo.com/community/thread...posts.334/#post-3397 :)

    I think a low end VPS (like a Linode 512) will be plenty for most communities. :)
  2. Ahmed

    Ahmed Well-Known Member

    I'm worried about the URL rewriting the most. That is my concern. So I was wondering if it will be easy to make XF works with Nginx without any trouble specially in URL rewriting.
  3. Erik

    Erik Well-Known Member

    Everything should be pretty portable:
  4. Kier

    Kier XenForo Developer Staff Member

    Doesn't get much more simple that this:

    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteCond %{REQUEST_FILENAME} -s [OR]
    	RewriteCond %{REQUEST_FILENAME} -l [OR]
    	RewriteCond %{REQUEST_FILENAME} -d
    	RewriteRule ^.*$ - [NC,L]
    	RewriteRule ^.*$ index.php [NC,L]
  5. Erik

    Erik Well-Known Member

    Lol. Nice. :D
  6. Vincent

    Vincent Well-Known Member

    Simple? The only thing I see in that is a smiley :p

    I'm not a good coder though, have no idea where to start :S
  7. Ahmed

    Ahmed Well-Known Member

    I think I'll have to do some testing once I get my copy of the software.
  8. Kier

    Kier XenForo Developer Staff Member

    That rule basically says that any time the requested file or directory is not found, it should be passed to index.php.

    XenForo itself then works out how to route the request.
    8thos likes this.
  9. Vincent

    Vincent Well-Known Member

    When I look at the code I can see something like that in it.

    One day I wanna be as good as you :)
  10. Erik

    Erik Well-Known Member

    Maybe this will help you understand: :) URL rewriting is extremely powerful, you should try to learn it sometime. :)
    <IfModule mod_rewrite.c>
        RewriteEngine On # turn the rewrite engine on
        RewriteCond %{REQUEST_FILENAME} -s [OR] # if the URL is a file that actually exists on the server
        RewriteCond %{REQUEST_FILENAME} -l [OR] # or a symbol link (it goes to an existing file on the server)
        RewriteCond %{REQUEST_FILENAME} -d # or a directory that actually exists on the server
        RewriteRule ^.*$ - [NC,L]  # do nothing (let the request continue)
        RewriteRule ^.*$ index.php [NC,L] # otherwise, just redirect the request to PHP, which will use environment variables, regex's, etc. to find out what the user is asking for (or display an error message if the request is invalid)
    krstep, EQnoble, valdet and 3 others like this.
  11. Vincent

    Vincent Well-Known Member

    Whoa! Thanks Erik :)

    I now see it. Question, are coders good in math?
  12. Enigma

    Enigma Well-Known Member

    Not necessarily, but there is some overlap between Mathematics and Computer Science
  13. Vincent

    Vincent Well-Known Member

    Thought so.
  14. Kier

    Kier XenForo Developer Staff Member

    Bear in mind an awful lot of that is coming from signature content. Turn off signatures in your preferences and take a look again and the resources XenForo itself requests.
  15. AdamD

    AdamD Well-Known Member

    Oh my, mine takes..

    On average, pages in your site take 2.7 seconds to load

    Heh, darnit.
  16. Umit

    Umit Active Member

    Thats great!
    How about page generation time and number of queries?
  17. Dean

    Dean Well-Known Member

    never mind, I cannot seem to make a cohesive post, something is messing up in the editor, I will try later.[​IMG]
  18. tecknical

    tecknical Member

    Numbers do tell a story, but "feel" tells a story too. The site just "feels" snappy and quick, and that's how most users will see it. The average user doesn't care how many queries are being processed or file requests or all that. The site just feels fast as hell, and that's great.

    Good job :)
    Photon and James like this.
  19. James

    James Well-Known Member

    Numbers can influence the feel though. Though I must admit without running my own page diagnostics (I did this like.. 30 mins after registering?) the site just felt right, it felt perfect, fast, very web 2.0.
  20. DarkGizmo

    DarkGizmo Active Member

    Fantastic!! :D

Share This Page