Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-30-2018, 07:19 AM   #1
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
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?
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2018, 08:33 AM   #2
NoWhErE
Too lazy to set a custom title
 
NoWhErE's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,211
Quote:
Originally Posted by digi View Post
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?
NoWhErE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2018, 10:05 AM   #3
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
About 100k / day.

and no, I have not. Shall look into it.
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2018, 10:57 AM   #4
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2018, 11:21 AM   #5
PornDiscounts-V
Confirmed User
 
PornDiscounts-V's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: L.A.
Posts: 5,740
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
PornDiscounts-V is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2018, 12:08 PM   #6
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
Quote:
Originally Posted by HomerSimpson View Post
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%
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2018, 02:09 PM   #7
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
Quote:
Originally Posted by digi View Post
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 06:13 AM   #8
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
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?
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 06:43 AM   #9
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 06:48 AM   #10
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
hm, ok. Thanks for the reply. Maybe its because I'm using an old WP theme
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 06:59 AM   #11
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 07:59 AM   #12
NoWhErE
Too lazy to set a custom title
 
NoWhErE's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,211
Do you have a lot of pretty links set? Maybe you could just manually 301 redirect them via htaccess instead of using the plugin.
NoWhErE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 09:38 AM   #13
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
nope, don't use the pretty links plugin
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2018, 01:03 PM   #14
NatalieMojoHost
Confirmed User
 
NatalieMojoHost's Avatar
 
Industry Role:
Join Date: Aug 2013
Posts: 1,472
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.
NatalieMojoHost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
pretty, load, wordpress, permalinks, server, bit, %request_filename, rewritecond, due, tips, htaccess, rule, deal, guys, traffic, sites



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.