Updated the corporate website today to include memcached. It was hitting our legacy application’s MSSQL database (which we have to still use), a ton, and slowing down the choke windows application.
Anyways, memcached saved the day! Way less hits on the database, and only took a few simple hooks to implement! I know I could have used Mason’s cache, but it isn’t distributed across servers that were not on this web server.
We use HTML::Mason for the site, so just a few simple hooks did the job.
- Preloaded the Cache::Memcached module into my mod_perl.
- Most of the website is driven off part number lookup.
Even non parts are actually parts in our database, but just have content associated with them. So in the part retrieve Mason page, I added a line to load up memcached.
|
|
|
|
|
|
comments powered by Disqus