Permalink
Browse files

Perform caching in new thread because no reason to wait for filesyste…

…m write.
  • Loading branch information...
1 parent a02aa2b commit 537a17d04fd096970fc998bc01f0322178cc0362 @maxim committed Oct 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/html_press/runner.rb
View
@@ -30,7 +30,7 @@ def run!
else
@cache_hit = false
@result_html = HTMLPress.new(html.identifiable_html).compress
- @store[@html_checksum] = @result_html
+ Thread.new { @store[@html_checksum] = @result_html }
end
end

0 comments on commit 537a17d

Please sign in to comment.