This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
README
attachment_fu_s3_cache
======================
Extend Attachement Fu to cache S3 files locally on the server. Uploaded files are stored to your server. You then need a
cron job to prompt this plugin to copy the files off to S3. Another cron job checks disk usage against a quote you set
to clear files off the server that haven't been touched in a while.
attachment_fu_s3_cache migrations
=================================
Fields to help with caching:
stored_remotely, :boolean # Flags that the file has been uploaded to S3
cached, :boolean # Flags that a copy of the file exists on the server
attachment_fu_s3_cache environment variables
============================================
Set the following in environment.rb (or initializer):
Technoweenie::AttachmentFu::QUOTA = 5.gigabytes
attachment_fu_s3_cache cron jobs
================================
You will need 2 cron jobs to keep things neat:
ruby /path/to/app/script/runner Model.store_remotely
ruby /path/to/app/script/runner Model.clear_cache
attachment_fu_s3_cache cron notes
=================================
* Only works on linux file systems (uses the 'du' command)







