Caching is fun!

I have been writing some caching code for the site.

At present, every hit on the CD list results in a hit on the db.

I wrote a generic caching class to keep a cache of db results to look in instead.

I was quite amazed that it all worked the first time I ran it, especially as there were thread synchronisation issues involved.

I will test a bit more before sending live though.

Next step, pagination, one page with 80-odd CDs on it is not the most usable is it. đŸ™‚

Leave a Reply

Your email address will not be published. Required fields are marked *