GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Pretty Permalinks - Wordpress - Server load (https://gfy.com/showthread.php?t=1303003)

digi 08-30-2018 07:19 AM

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 08-30-2018 08:33 AM

Quote:

Originally Posted by digi (Post 22328551)
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?

digi 08-30-2018 10:05 AM

About 100k / day.

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

HomerSimpson 08-30-2018 10:57 AM

R U sure that this is the problem?
It can be quite a few things that can slow down a WP site...

PornDiscounts-V 08-30-2018 11:21 AM

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.

digi 08-30-2018 12:08 PM

Quote:

Originally Posted by HomerSimpson (Post 22328667)
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%

HomerSimpson 08-30-2018 02:09 PM

Quote:

Originally Posted by digi (Post 22328715)
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...

digi 08-31-2018 06:13 AM

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?

HomerSimpson 08-31-2018 06:43 AM

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).

digi 08-31-2018 06:48 AM

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

HomerSimpson 08-31-2018 06:59 AM

Theme is usually not that problem (but it can be)... Usually it's the plugins...

NoWhErE 08-31-2018 07:59 AM

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

digi 08-31-2018 09:38 AM

nope, don't use the pretty links plugin

NatalieMojoHost 08-31-2018 01:03 PM

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.


All times are GMT -7. The time now is 07:57 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc