Page Index Toggle Pages: 1 2 3 [4] 5  Send TopicPrint
Very Hot Topic (More than 25 Replies) Board Index User Cache 1.4 for YaBB 2.1 only (Read 19102 times)
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #45 - Feb 19th, 2007 at 11:05pm
Print Post  
I have an idea as to the cause. Care to try a code modification?

In BoardIndex.pl, search for
Code
Select All
	\${\$uid.'$user'}{'regdate'} = '$filtereddate'; 



add after
Code
Select All
	\${\$uid.'$user'}{'posts'} = '${$uid.$user}{'posts'}'; 



This should work in most cases, though may not work right when a user switches ranks.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #46 - Feb 19th, 2007 at 11:28pm
Print Post  
AK108 wrote on Feb 19th, 2007 at 11:05pm:
This should work in most cases, though may not work right when a user switches ranks.


Huh?  What do you mean by that?
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #47 - Feb 20th, 2007 at 1:01am
Print Post  
If their post count increases them to the next rank, the cache might still have their previous rank for a few minutes. If this bothers you, reduce the cache time.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #48 - Feb 20th, 2007 at 3:34am
Print Post  
I haven't changed the code yet, nor have I changed anything since adding your mod yesterday, but I'm seeing these errors in my error log now:

Quote:
String found where operator expected at ./Variables/boardindexusers.cache line 345, near "$uealname'} = '


Quote:
Number found where operator expected at ./Variables/boardindexusers.cache line 432, near "}6"


Quote:
String found where operator expected at ./Variables/boardindexusers.cache line 345, near "${$uid.'" (Might be a runaway multi-line '' string starting on line 344)


ACK!
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #49 - Feb 20th, 2007 at 3:48am
Print Post  
Can you send me your BoardIndex.pl and a (broken) copy of boardindexusers.cache?
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #50 - Feb 20th, 2007 at 6:08am
Print Post  
Sent!
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #51 - Feb 20th, 2007 at 1:51pm
Print Post  
How did you send it, out of curiosity?
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #52 - Feb 20th, 2007 at 2:24pm
Print Post  
e-mail
  
Back to top
 
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #53 - Feb 22nd, 2007 at 2:12am
Print Post  
Did you get it?
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #54 - Feb 22nd, 2007 at 2:34am
Print Post  
Yes, but I don't see any reason why you should get those errors. Undecided Neither file is broken.

I may release a 1.5 version eventually (since I am updating the code used in my forum). Would you be interested in trying it? It reduces file writes when combined with collapsed/hidden forums.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #55 - Feb 22nd, 2007 at 3:21am
Print Post  
Here are more errors.  Perhaps they'll help you:

Code
Select All
Scalar found where operator expected at ./Variables/boardindexusers.cache line 257, near "'regtime'$uid"
 


Code
Select All
Number found where operator expected at ./Variables/boardindexusers.cache line 263, near "${$uid.'admin'}{'regdate'} = '11/06"
 



Let me know what you find out!
  
Back to top
 
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #56 - Feb 22nd, 2007 at 3:35am
Print Post  
And yes, I would like to try it.  My server collapses when I get 300+ users on at one time.  And I'm on a dedicated server!  I doubled the cache time, but it didn't seem to make a difference.

  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #57 - Feb 22nd, 2007 at 3:39am
Print Post  
Somehow your cache file is getting corrupted from time to time. Are you using 1.4? It seems like it was improperly installed or something.

Do you have hidden forums or collapsable categories? If so, the current version won't help too much.

Try invalidating your cache - that might force the change, though I'm not sure.

Oh, and in the BoardIndex.pl file you sent me, I don't see the code change I specified.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #58 - Feb 22nd, 2007 at 3:45am
Print Post  
I'm using 2.1, and literally just added the code moments ago.  I see it's working now - on new members as they log in.  So it just has to cycle through.

I never saw any of these errors until I added your mod.  Not an angry comment, just an observation.

Yes, I have hidden forums & I think I have collapsable categories - is that stock?  If so, then I have them. You have my URL in my e-mail, come take a look.  Obviously you won't see the hidden categories.
  
Back to top
 
IP Logged
 
b8caster
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Feb 19th, 2007
Re: Board Index User Cache 1.4 for YaBB 2.1 only
Reply #59 - Feb 22nd, 2007 at 3:48am
Print Post  
I spoke too soon. The bug didn't disappear.  It's still there.  Just had to look at a post and then go back to the main page.

I invalidated the cache - same scenario.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 
Send TopicPrint