Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 125099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:06:19+00:00 2026-05-11T05:06:19+00:00

I am looking for a simple and automated way to store the page cache

  • 0

I am looking for a simple and automated way to store the page cache on S3 (and of course cloudfront.) I know of a plugin that does this with the fragment cache, but before I create it myself, wanted to tap into the collective wisdom here 🙂

Edited: To make myself more clear, I am not looking to use S3 to serve the files, but rather, the CloudFront CDN.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:06:19+00:00Added an answer on May 11, 2026 at 5:06 am

    In order to put something in CloudFront, you have to first have it in S3. See Amazon’s introduction for all the steps. Basically, you put the document in a bucket on S3 and then make an API call to register your bucket for distribution (you do this using a perl script they provide). At that point, they transfer the contents of your bucket out to the edge servers for high performance distribution. You can change the contents of your bucket once an hour.

    Anyway, in order to use CloudFront, what you really need to do is get the contents of your rendered pages into S3. Once you’ve gotten your distribution up and running this is how you manage your content in CloudFront.

    The simplest way to manage a cache in S3 would probably be to create a model for your cache and use the attachment_fu plugin to store the page contents in s3. Then, you could use ActiveRecord’s Observer functionality to invalidate and re-populate the cache as appropriate for your application. The only other tricky bit would be reaching into ActionView to access the result of rendering a page, but I bet you could crib some of that code from the default page caching system itself.

    If you really wanted to, you could probably wrap all of this functionality up into a plugin that would make it easy to re-use across applications for you and others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im looking for a way of running a Twitter Search (Automated via CRON) that
Ok, this is an embarassingly simple-looking problem, but is driving me crazy. I'm learning
Im looking for a simple bit of code that will let me add the
I'm looking for a simple way to implement a framebuffer in C#, D or
I'm looking for a simple way to encrypt my soap communication in my C#
I've been looking for a better way to deal with site-specific settings (in this
I'm looking for a simple way to detect whether a short excerpt of text,
I'm looking at building a simple app based around location. Obviously given that lots
I’m looking a simple tool to train and test neural networks for classification tasks.
I'm looking for (simple) examples of problems for which JMS is a good solution,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.