Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Permissions changed on new posts
Avatar
Justine Greenway
East Yorkshire, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 21, 2014 - 6:02 am

I have just been made aware of a problem whereby new posts are not displaying in a forum unless a user is logged in, but old ones are.  Guests have read only access to this particular forum, which means that even if someone is not logged in they should still be able to read posts, however new posts that have just been put on are not displaying now until someone signs into the forum.  All the old posts are still there.

 

Do you have any ideas what has happened here?  I have not changed any of the settings on the forum.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 21, 2014 - 6:10 am

Have you added - or changed the settings of an existing - caching plugin at all?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Justine Greenway
East Yorkshire, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 21, 2014 - 9:03 am

Ah yes, I have just added WP Super Cache on the advice of my hosting service.  What do I need to do?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 21, 2014 - 10:26 am

That's fine but you MUST exclude the forum page from the cache as the cache relies upon static data and the forum page, of course, is dynamic.

somewhere in the options you can excluyde pages - put the base forum slug in there and it should all then be well - although you may need to empty the cache.. not sure about that.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Justine Greenway
East Yorkshire, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 24, 2014 - 7:59 am

My hosting provider have given me this response:

"The forum is what is causing all the SQL traffic. If you exclude it from the cache, there is no point to using cache at all. Your page is essentially just a forum. I think simplepress was poorly written and not optimized at all, which causes it to be very heavy on SQL usage. You may want to ask them what you can do to reduce the amount of queries it uses."

Basically, my site database usage needs to be reined in as it is handling 8x more queries than any other database they host (including their own). It has made 58 *million* queries in the last 3 days alone. It is doing about 200 queries / second (more than all the databases on the other servers in their pools combined).

In effect, I am being advised not to use the Simple:Press forum on my site.  This is not a route I want to go down as I have invested a lot of time and money into making this work, but it simply is not working properly for me at the moment.  Is there anything you can advise?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 24, 2014 - 9:43 am

It's a forum. All forums are data intensive. OK - forum plugins like bbPress may well be less data heavy but it also lacks the level of capability that comes with SP. WordPress sites are basically static by nature with very low levels of data change. Forums - especially busy ones - are dynamic with an ever changing face to the data. This is why WP-style caching can not work because the cached page is inaccurate the moment another post is made.

To perform that many queries your forum must be pumping out about 225 SQL calls every second non-stop for three days. That suggests that you have a really, really extremely permanently busy forum. And if that is truly the case then I would expect that level of activity to be on a dedicated web server. Anything less than that and you would expect bottlenecks and hosting complaints.

I don't know what sort of hosting you are on but if you are on anything shared with that level of activity then... it is going to slow down and annoy the other websites sharing the resources.

As to what causes the high level of SQL activity... basically options, complex permissions, unnecessary plugins. It all adds up one small piece at a time. There are so many permutations it is difficult to say but as with any such software, the cleaner and leaner you run it the better the performance and resources needed.

We have users with up to 750,000 members and vast numbers of topics and posts being regularly made. Like all websites - these users need to pick their hosting with care and, as I say, when they hot a certain level of activity need dedicated hosting.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Justine Greenway
East Yorkshire, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 28, 2014 - 5:55 am

Response from hosting provider:

I've looked at your forum and it is definitely NOT that busy. There is absolutely no reason for it to be making that many queries. Even with the caching, you're still using more SQL than our next two busiest customers combined. We also host some /very/ large, very busy forums and they're using 1/5th the SQL yours is. Something is not set up properly with your forum, and something with that amount of traffic definitely doesn't require a dedicated server. If the SP developer / help desk person you talked to took a second to look at your forum, they'd realize that there is no way the amount of SQL usage is normal.

Can you please find a way to help me sort this out as there definitely seems to be a problem with this forum and if it is not sorted soon I will be forced to uninstall it.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 28, 2014 - 11:04 am

not sure what we can do... we have users where their forums have a million users with hundreds or thousands on at the same time... simple press is not a load there...  or here... or elsewhere except for a handful of users (mostly on shared hosting)...  and frankly, those who have had issues were cpu issues not mysql...

sp is an extra load on wp of course, like any other plugin - its additive...

how many forums do you have?  how many users?

one thing you can check, on forum - options - global settings, try disabling the error logging...  if you have a server configuration generating strange errors, notices, warnings, perhaps the error logging is bogging you down...

Avatar
Justine Greenway
East Yorkshire, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 28, 2014 - 12:28 pm

We have 1 admin, 5 moderators, 25 contributors and 7 subscribers, so I am sure you can see this is not a huge forum.  There are only 9 forums; one of these is not available to subscribers and another is only available to moderators and admins.

I have tried disabling error logging but not sure what effect it will have.  Something is obviously very wrong here to be causing the issue it is with such a small forum.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 28, 2014 - 12:57 pm
  1. Go to the forum admin > Toolbox > Environment and copy the results displayed in the panel and send them to me AND to Mr Papa in a PM.
  2. In the same PM send us a link to your forum page so we can look at it.
  3. Somewhere on your web server is a php error log (typically it will be in the root folder of the website and will just be called 'error.log' although this is not always the case). Looking at it now - how big is it (file size) and of you download it and look at the contents in a text editor do you see many entries for the same error repeated and any mention of mySQL being mentioned regularly? Again - you can add these answers to the PM.

Please also include in the PM a link to this thread so we can find it and refer to it quickly.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626