21
Skythe
Re: Number of pages in NewBB
  • 2005/4/30 10:50

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Another question:

How do you hold newbb from putting an infinite amount of dots between the numbers of pages a thread got on the forum overview page?

Like [The thread's name] 1 2 3 ........ 18.

For a thread with 5 pages it will print 3 dots, 9 for 7 pages and 30 (!) for 14 pages. The whole row is just dots!

I found this
if ( $i && $i $totalpages ) {
$pagination .= "...";


in modules/newbb/viewforum.php but I dont know what to do with it.

(I noticed it works differently on here than on my v1)



22
Skythe
Re: Xoops overloading my Server
  • 2005/4/30 10:31

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


5.363 Seconds | 1015 Queries :x



23
Skythe
Re: Number of pages in NewBB
  • 2005/4/29 13:54

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Quote:

Mithrandir wrote:
1) this depends on the number of threads and from how many days back you list threads

2) In the viewtopic.php file in your newbb module, there should be some code roughly like this:

$nav->renderNav(4);

Change this number to 1 so it reads

$nav->renderNav(1);


1. Thats exactly my question. How do you change the number of days?

2. Thanks :)



24
Skythe
Number of pages in NewBB
  • 2005/4/28 17:10

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


1 How do you change the number of pages (thread overview, not in a thread) that are stored and accessible? Like on my board there are always two.

2 Where do you change the number of pages of a thread that are displayed on the bottom right for example?
Lets say a thread consist of 10 pages and youre viewing the last page the navigation would be « 1 ... 7 8 9 (10). Which is too much text, messing up the layout. Id like to change it to something like « 1 ... 9 (10).



25
Skythe
Re: Xoops overloading my Server
  • 2005/4/27 15:10

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


The number of querries is higher than ever now. First ~380, then down to around 30 when I reduced the # of news entries, now ~620 on the front page. Without my having changed a thing.

Whats this all about?


EDIT: 770 today



26
Skythe
Re: Xoops overloading my Server
  • 2005/4/21 16:37

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Thanks guys. Im gonna sit tight and wait till my hosts tells me what the situation is now before making any more changes. And loading speed of the pages is better than ever now anyway.

But looks like the caching has created a new problem.

Forum cache is set to 1 hour. Ive just posted 4 times in different threads and while I could see the first 3 posts after posting them, when I posted the 4th, it wouldnt appear at the bottom of the page. I reloaded the page, went back to the other threads, and all 4 posts are gone.



27
Skythe
Re: Xoops overloading my Server
  • 2005/4/20 17:01

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Quote:

Dave_L wrote:
You may have to experiment with the cache settings. But be careful not to cache content that depends on the user's access level, e.g. a block that displays different content for users and admins.

In the log file, I would look for "patterns".

The IP address and user agent identify the client who's accessing the site. If you see 10000 consecutive lines with the same IP address and user agent, that could be a search bot or someone else "spidering" your site.

The script name is also logged, so that can show if a particular module or part of a module is responsible for most of the load.


I set News, Polls, Forum and Members to 1 hours each. There should not be a problem with those and access levels right?

The logs are already adding up big time. 22 files and 71 megs. You did good in pointing out their size in your faq..

I went through one log to see how many occurences I could find for each IP: 54, 86, 102, 122, 126, 138, 158, 172, 181, 190, 192, 204, 285, 306, 312, 330, 726 and 732 times.

?



@brash Thanks. I installed it. On the front page (news) it read 4.523 Seconds | 374 Queries. O.o I reduced the amount of news entries to be displayed from 15 to 5 and it went down to 0.168 Seconds | 33 Queries. Gosh. Now its gone back up to an average of 2.9sec.
Every other page is around 0.13 sec, 30-45 queries.

Could that have been the problem??? Too many entries per page? But 15 dont seem like overkill to me. I mean most of them include images but that doesnt affect the number of querries, just loading speed.....

@iolai I'm still using newbb 1. ;)



28
Skythe
Re: Xoops overloading my Server
  • 2005/4/19 19:02

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Ok I'll try with Caching first and ask my Host if that reduced the server load. What time period should I set the modules to? 30s, 1h, 1 day, 1 week?

thanks for your help so far Dave



Edit: I hacked that file and got the first log just now. Lots of ips, browser ids, and stuff. Reminds me of counter stats. What should I be looking for in the logs?



29
Skythe
Re: Xoops overloading my Server
  • 2005/4/19 15:21

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Quote:

Dave_L wrote:
Check that you don't have persistent connections enabled in mainfile.php.

Caching modules and/or blocks can also reduce database queries.

If that doesn't help, here's a way of logging all the database queries. It may help if a specific client (such as a search robot), or a particular XOOPS module, is responsible for the overload.

https://xoops.org/modules/smartfaq/faq.php?faqid=462


Persistent connections and module-wide cache are off. The blocks I checked all had cache disabled too.

I was gonna try that hack but I dont quite get it. Whats that function XoopsMySQLDatabase::queryF part? Cant find that or logdir in my mysqldatabase.php.



30
Skythe
Xoops overloading my Server
  • 2005/4/18 22:02

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Hi there

I got a problem with my Xoops driven website. Today it went down and I asked my Host about it. He said it was my fault for having more than 260 database processes running at certain times of the evening. (same thing with my previous hosts....)

Between 5 pm and midnight the site's got an average of 40,000 hits (or 160 pages) per hour. Now he's telling me to upgrade to a root or managed server which I'm not gonna do. I'm already paying a LOT and hardly use 50% of the 200 GB bandwidth.

Comments, help? :(

Modules I'm using are news & newbb, thats it. The rest is static galleries. They supposedly dont use the database at all.




TopTop
« 1 2 (3) 4 5 6 ... 10 »



Login

Who's Online

199 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 199


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits