Jump to content

Question

Posted

So I added custom community board on my own, added top pvp, pk , grandboss and raidboss statistics. top pvp-pk uses sql query to get information and show result on board. and as i know on live aerver it will cause problems. Can you tell me how to make information update every 30 minutes and not any time people opens board.

7 answers to this question

Recommended Posts

  • 0
Posted

It won't cause problems but in this case go for premature optimization and cache the data as Sdw said.

 

Basically run a task which will populate your vars, Lists, Maps or whatever you use and give it an interval of 30 minutes.

  • 0
Posted

It won't cause problems but in this case go for premature optimization and cache the data as Sdw said.

 

Basically run a task which will populate your vars, Lists, Maps or whatever you use and give it an interval of 30 minutes.

 

 

I cache the whole HTM I find it easier faster and ofc dumber

  • 0
Posted

I cache the whole HTM I find it easier faster and ofc dumber

Yeah the website way. It is actually pretty smart.

  • 0
Posted

Yeah the website way. It is actually pretty smart.

 

You basically avoid all the String concatenation when the player requests the HTM, and you just send it ready to go, the code is uglier ofc but its a good shortcut

Guest
This topic is now closed to further replies.


×
×
  • Create New...