FIX: Don't raise error when adding to cache fails in readonly mode.

FIX: Don’t raise error when adding to cache fails in readonly mode.

diff --git a/app/models/stylesheet_cache.rb b/app/models/stylesheet_cache.rb
index ee0b021..03d921c 100644
--- a/app/models/stylesheet_cache.rb
+++ b/app/models/stylesheet_cache.rb
@@ -34,7 +34,7 @@ class StylesheetCache < ActiveRecord::Base
     end
 
     success
-  rescue ActiveRecord::RecordNotUnique
+  rescue ActiveRecord::RecordNotUnique, ActiveRecord::ReadOnlyError
     false
   ensure
     if Rails.env.development? && old_logger

GitHub sha: cebd8da2