JoeUser Cache options

I wish it was Cash Options!

Today I created a caching component that allows me to save portions of the website in memory for a period of time.  The first area I have chosen to test with my caching component is to cache the right bar data.. 

When viewing the page for the first time the data is loaded from the database (like normal) but then is inserted into cache for a period of 2 minutes.  So for the next two minutes when anyone views your blog your rightbar data will be pulled from cache instead of the database. This is on a per blog site basis.

However, there is a slight drawback to this.  Anytime you add a new article or custom links it may take a couple minutes for your new items to show up while the data is cache.  At a later time I hope to have it refresh the cache when those types of actions occur.

9,763 views 12 replies
Reply #1 Top
That is fine!  A little (2 minutes?) delay will not hurt anyone!
Reply #2 Top
2 minutes is actually generous.

On my site I use anywhere from 15 minutes to an hour.

Keep up the good work.
Reply #3 Top
I think it is a good thing. Honestly, message boards aren't chat rooms. There would be nothing wrong at all with a cache of up to an hour, imho, on everything here. If anything, it would decrease the amount of retaliatory, back-and-forth flaming and maybe make people think more about what they post.
Reply #4 Top
I'm sure I will play with the cache time a bit but I wanted to take it easy since this is my own home grown component.  Didn't want to push it too heavily.  And once I get code in to update cache when certain actions are performed then I will not have as many reservations about extending the cache time.
Reply #5 Top

And once I get code in to update cache when certain actions are performed then I will not have as many reservations about extending the cache time.

You have a great job!

Reply #6 Top

Cached more areas of the site today.  Hopefully performance is better.  And hopefully we didn't break anything.

Reply #7 Top
That's an great idea! No more hard hitting hard drive when certain blogs get thousands of visits at once. How about caching the wincustomize (and other sites) pages?
Reply #10 Top
Testing free money . . .  $2345.12
Reply #12 Top
Apparently MY cash test failed.