[Rubygems-developers] Caching of the remote cache (index files) now works...

Richard Kilmer rich at infoether.com
Mon Sep 6 20:03:01 EDT 2004

So, when you perform remote operations now, the index for remote sources is
now stored in the target install_dir (default Gem.dir).  This file is a
yaml-based hash which contains the source (as key) and another hash as the
value which then has the cache size and the cache itself.  Each operator
gets the size of the current cache and compares them.  We were going to use
modified since type headers but RubyForge was not consistently handling
that.  The size thing works for now... If you do a:

sudo gem search ikko --remote (assuming *nx)

Then the cache will be updated the first time, and subsequent operations are
way faster.  This make multiple searches fast, and multiple installs too.


More information about the Rubygems-developers mailing list