ruby - Anyone know of a simple way to store the Rails Page cache on Amazon S3? -


Looking for a simple and automated way to store page cache on S3 (and of course, cloudfront) I am here. I know a plugin that does this piece with cache, but before I make it myself, I wanted to tap into group knowledge here :)

EDITED: To make yourself more clear Serve files, I'm not looking to use S3, rather, CloudFront CDN. To put something in CloudFront, you must first keep it in S3. See for all the steps; In fact, you put the document in a bucket on S3 and then your bucket for distribution.

However, to use CloudFront, what you really need to do is find the content of your rendered pages in S3. Once you've got your distribution once and it's running, how do you manage your content in CloudFront.

The easiest way to manage a single cache in S3 will probably be to create a model for your cache and store the page content in S3, then you have the appropriate cache invalid for your application and again : Can be used for filling. Only one other hard bit will reach the result of providing a page to access the ActionView, but I'm sure you want to code some code from the default code caching system.

If you really wanted, you could probably wrap all this functionality in a plugin, making it easy for you and others to reuse all applications.


Comments