|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Thoughts on Caching?
I've been thinking about doing a little bit of caching on the forums and was wondering what other people's thoughts were? What I have been contemplating is to cache the main forum view (the one that lists all the forums) for a period of about 3 minutes. This would take quite a few queries off of the database but still allow for frequent updates of the data.
I have also toyed around with the idea of caching the forum views (where the threads are listed), but thought it would be too confusing for people when they posted and then didn't see it show up. I know I could give a message saying "Message will show up in 3 minutes". But I also know it will be ignored. So, thoughts? |
|
#2
|
|||
|
|||
|
RE: Thoughts on Caching?
what about this:
keep a separate cached file for every forum, and regenerate it only when someone posts a message to that forum. and keep a cached file of forum index, but regenerate it every minute from a cron job. dont delay for more than a minute, because then, some threads could be missed (eg, when i come to the site, i open all of the forums with new messages in the tabs, and go from there. if user posts at 00:10, and i get at 00:12, and you don't regenerate until 00:14, i will not see that that forum has new messages, and will not open it...) |
|
#3
|
|||
|
|||
|
RE: Thoughts on Caching?
OK...I am now caching the index with a timeout of 1 minute, so it will never be older than 1 minute.
As for each forum, I have it set for a timeout of 30 minutes. However, if a post, reply, or delete happens in that forum the cache is forced to timeout. Seems to make the loads much quicker |
|
#4
|
|||
|
|||
|
RE: Thoughts on Caching?
Actually...forget I said anything. I have turned it off. I forgot all about the little folder icons being different if there were new messages and the titles being bolded if it was a new message..
I was just caching the html and reusing it for everyone. Obviously, that didn't work well. I will have a little more time tonight, and then I will cache the actual results from the query and use those to the new messages features will work properly... |
|
#5
|
|||
|
|||
|
RE: Thoughts on Caching?
OK.....it's back on
I am caching the forum index for an indefinate amount of time. It is updated on every post reply or delete though. Same goes for all the thread indexes..... Everything seems much faster Please let me know if you see anything odd... |
|
#6
|
|||
|
|||
|
RE: RE: Thoughts on Caching?
Quote:
i thought it was implied from the start that you will do it this way btw, can you post average loads before and after? |
|
#7
|
||||
|
||||
|
RE: Thoughts on Caching?
You should share this "holy grail" of caching solution with phpclasses.org. All of their mirrors are slow!
-Tim |
|
#8
|
|||
|
|||
|
RE: Thoughts on Caching?
I have noticed that they have been running slow recently...Yesterday none of the DNS for them was even working....
|
|
#9
|
||||
|
||||
|
RE: RE: Thoughts on Caching?
Quote:
'Tis sad, really. with all the advertising slots they've sold you'd think they'd have enough for at least 1 good DNS. -Tim |
|
#10
|
||||
|
||||
|
RE: RE: Thoughts on Caching?
Quote:
If you are on the forums and log in there, you're redirected to the main page. It'd be nice if you could stay on the forums. |
|
#11
|
|||
|
|||
|
RE: Thoughts on Caching?
Oooops! I think it already works like that! Worked for me....
|
|
#12
|
|||
|
|||
|
RE: Thoughts on Caching?
Use the login form in the myCodewalker box rather than the eF login form and it will keep you on the same page
|
|
#13
|
|||
|
|||
|
RE: Thoughts on Caching?
Yep... Matt is right! When you use myCodewalker box, it keeps you in the same page. No worries.
|
|
#14
|
||||
|
||||
|
RE: RE: Thoughts on Caching?
Quote:
Don't know about you but it doesn't keep ME on the same page But I'll have to test if it's just one of the features in IE6. |
|
#15
|
||||
|
||||
|
RE: Thoughts on Caching?
I tried Opera too. After entering my uname and pword I saw a page with this content
Redirected to Generated by Opera © Of course it could be that the ad-blocking system in my firewall did it... Dunno though. |
![]() |
| Viewing: Codewalkers Forums > Forum Information > Suggestions & Feedback > Thoughts on Caching? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|