Railsのサイトは重いと思われていませんか? また、マシンパフォーマンスが必要だと思っていませんか? 必ずしもそうではないのです。 とは言ってもRailsで全てのコンテンツを毎回作成してはコストがかかってしまいます。 そこで今回は毎回動的にページを生成するのではなく、キャッシュを利用してRailsへの負荷を減らす事を考えます。 ★処理の流れが変わる Rails自身にもキャッシュ機能はあるのですが、今回紹介するのはApacheでキャッシュするmod_cacheというモジュールです。 現在フォアフロントで構築しているRuby on Railsの環境では、HTTP(S)のリクエストは Apache → mod_proxy,mod_proxy_balancer → mongre という流れで処理を行っています。 mod_cacheを利用する場合には Ap