Permalink
Browse files

We don't need to base64 armor the data

  • Loading branch information...
1 parent 2a63730 commit b3b7e16950b642bb3a373376dd4600d73c789d42 @evanphx evanphx committed Sep 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/middleware/api_v1_depedencies.rb
View
4 app/middleware/api_v1_depedencies.rb
@@ -28,7 +28,7 @@ def data_for(name, ary, cache)
end
if cache
- cache.set "gem.#{name}", [Marshal.dump(these)].pack("m")
+ cache.set "gem.#{name}", Marshal.dump(these)
end
ary
@@ -55,7 +55,7 @@ def call(env)
gems.each do |g|
begin
data = cache.get "gem.#{g}"
- ary += Marshal.load(data.unpack("m").first)
+ ary += Marshal.load(data)
rescue Memcached::NotFound
begin
data_for g, ary, cache

0 comments on commit b3b7e16

Please sign in to comment.