Pretty Permalinks - Wordpress - Server load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • digi
    Confirmed User
    • Feb 2002
    • 1314

    #1

    Pretty Permalinks - Wordpress - Server load

    How do you guys deal with pretty permalinks on high traffic wordpress sites? It seems the load on my server goes up quite a bit due to the:

    RewriteCond %{REQUEST_FILENAME} !-f

    rule you have to put in htaccess.

    Any tips?
  • NoWhErE
    Too lazy to set a custom title
    • Sep 2005
    • 10583

    #2
    Originally posted by digi
    How do you guys deal with pretty permalinks on high traffic wordpress sites? It seems the load on my server goes up quite a bit due to the:

    RewriteCond %{REQUEST_FILENAME} !-f

    rule you have to put in htaccess.

    Any tips?

    Define "high traffic". I have some WP sites that get substantial traffic and pretty links has never really been an issue for me. Have you tried installing New Relic or another type of monitoring to see what queries are slowing down your site?
    skype: lordofthecameltoe

    Comment

    • digi
      Confirmed User
      • Feb 2002
      • 1314

      #3
      About 100k / day.

      and no, I have not. Shall look into it.

      Comment

      • HomerSimpson
        Too lazy to set a custom title
        • Sep 2005
        • 13826

        #4
        R U sure that this is the problem?
        It can be quite a few things that can slow down a WP site...
        Make a bank with Chaturbate - the best selling webcam program
        Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

        PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

        Comment

        • PornDiscounts-V
          Confirmed User
          • Oct 2003
          • 5744

          #5
          That coffee wouldn't give you issues. What is giving you issues is the logging being done. Go into settings and stop it from counting clicks, etc.
          Blog Posts - Contextual Links - Hardlinks on 600+ Blog Network
          * Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net

          Comment

          • digi
            Confirmed User
            • Feb 2002
            • 1314

            #6
            Originally posted by HomerSimpson
            R U sure that this is the problem?
            It can be quite a few things that can slow down a WP site...
            Sites load fine without permalinks. Switched them on to 2 sites and server load increased with 20%

            Comment

            • HomerSimpson
              Too lazy to set a custom title
              • Sep 2005
              • 13826

              #7
              Originally posted by digi
              Sites load fine without permalinks. Switched them on to 2 sites and server load increased with 20%
              Yeah, but when you disable permalinks most of visitors that should land on perma link will actually get 404 or something... And that way most WP post specific functions won't be executed and load will lower.

              I would check other stuff like mysql loads, php loads etc...
              Make a bank with Chaturbate - the best selling webcam program
              Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

              PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

              Comment

              • digi
                Confirmed User
                • Feb 2002
                • 1314

                #8
                Here is what my host support says is the issue:

                In the .htaccess it has.

                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d

                -f = file
                -d = directory

                The -f is the problem. It means it's processing the rules for every "file", meaning every thumbnail, etc. If it was just directories it would not be so bad, but with your traffic amount this rule is sending thousands of calls to the CPU per second.

                So, question is. Is there a solution for this?

                Comment

                • HomerSimpson
                  Too lazy to set a custom title
                  • Sep 2005
                  • 13826

                  #9
                  This is how things work... This is normal... The only solution is to change the host or to try and figure what is the problem (this clearly isn't since this is probably less than 0.1% cpu power needed to serve one wp page).
                  Make a bank with Chaturbate - the best selling webcam program
                  Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

                  PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

                  Comment

                  • digi
                    Confirmed User
                    • Feb 2002
                    • 1314

                    #10
                    hm, ok. Thanks for the reply. Maybe its because I'm using an old WP theme

                    Comment

                    • HomerSimpson
                      Too lazy to set a custom title
                      • Sep 2005
                      • 13826

                      #11
                      Theme is usually not that problem (but it can be)... Usually it's the plugins...
                      Make a bank with Chaturbate - the best selling webcam program
                      Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

                      PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

                      Comment

                      • NoWhErE
                        Too lazy to set a custom title
                        • Sep 2005
                        • 10583

                        #12
                        Do you have a lot of pretty links set? Maybe you could just manually 301 redirect them via htaccess instead of using the plugin.
                        skype: lordofthecameltoe

                        Comment

                        • digi
                          Confirmed User
                          • Feb 2002
                          • 1314

                          #13
                          nope, don't use the pretty links plugin

                          Comment

                          • NatalieMojoHost
                            Confirmed User
                            • Aug 2013
                            • 1479

                            #14
                            Putting those thumbs on CDN should help reduce server load if you don't want to part ways with pretty links. Let me know if you want more information on CDN, we have some great options for all budgets.

                            MojoHost.COM | natalie at mojohost dot com | Skype natalie.ac | Telegram @znatalie. Since 1999: 70 Adult Industry awards for Best Hosting Company and professional excellence.

                            Comment

                            Working...