public
Description: Evil Twin Plugin: Store files to S3, but also keep a copy locally cached on the server.
Homepage:
Clone URL: git://github.com/twinge/attachment_fu_s3_cache.git
name age message
file README Loading commit data...
file init.rb
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)