Przeglądaj źródła

Version bump to 1.4.0

Andrew Kane 8 lat temu
rodzic
commit
0aa05049a3
3 zmienionych plików z 15 dodań i 4 usunięć
  1. 1 1
      CHANGELOG.md
  2. 13 2
      README.md
  3. 1 1
      lib/blazer/version.rb

+ 1 - 1
CHANGELOG.md

@@ -1,4 +1,4 @@
-## 1.4.0 [unreleased]
+## 1.4.0
 
 - Added `slow` cache mode
 - Fixed `BLAZER_DATABASE_URL required` error

+ 13 - 2
README.md

@@ -212,10 +212,21 @@ smart_columns:
 
 ### Caching
 
-Blazer can automatically cache results to improve speed.
+Blazer can automatically cache results to improve speed. It can cache slow queries:
 
 ```yml
-cache: 60 # minutes
+cache:
+  mode: slow
+  expires_in: 60 # min
+  slow_threshold: 15 # sec
+```
+
+Or it can cache all queries:
+
+```yml
+cache:
+  mode: all
+  expires_in: 60 # min
 ```
 
 Of course, you can force a refresh at any time.

+ 1 - 1
lib/blazer/version.rb

@@ -1,3 +1,3 @@
 module Blazer
-  VERSION = "1.3.5"
+  VERSION = "1.4.0"
 end