Skip to content

Commit 02d70a2

Browse files
authored
Update Caching.md
1 parent 30e038b commit 02d70a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/Cube.js-Backend/Caching.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Cube.js takes great care to prevent unnecessary queries from hitting your databa
3131

3232
So, Cube.js defines a `refreshKey` for each cube. [refreshKeys](cube#parameters-refresh-key) can be evaluated by Cube.js to assess if cube data has changed.
3333

34-
__Note__: Cube.js *also caches* the results of `refreshKeys` for a fixed time interval in order to avoid issuing them too often. If you need Cube.js to immediately respond to changes in data, see the [Force Query Renewal](#in-memory-cache-force-query-renewal) section.
34+
> **Note**: Cube.js *also caches* the results of `refreshKeys` for a fixed time interval in order to avoid issuing them too often. If you need Cube.js to immediately respond to changes in data, see the [Force Query Renewal](#in-memory-cache-force-query-renewal) section.
3535
3636
When a query's result needs to be refreshed, Cube.js will re-execute the query in the foreground and repopulate the cache.
3737
This means that cached results may still be served to users requesting them while `refreshKey` values aren't changed from Cube.js perspective.
@@ -57,8 +57,9 @@ You can set up a custom refresh check SQL by changing [refreshKey](cube#paramete
5757

5858
In these instances, Cube.js needs a query crafted to detect updates to the rows that power the cubes. Often, a `MAX(updated_at_timestamp)` for OLTP data will accomplish this, or examining a metadata table for whatever system is managing the data to see when it last ran.
5959

60-
Note that the result of `refreshKey` query itself is cached for 10 seconds for RDBMS backends and for 2 minutes for big data backends by default.
60+
> **Note:** The result of `refreshKey` query itself is cached for 10 seconds for RDBMS backends and for 2 minutes for big data backends by default.
6161
You can change it by passing [refreshKey every](cube#parameters-refresh-key) parameter.
62+
See [refreshKey every](cube#parameters-refresh-key) doc to learn more about the implementation.
6263
This cache is useful so that Cube.js can build query result cache keys without issuing database queries and respond to cached requests very quickly.
6364

6465
### Force Query Renewal

0 commit comments

Comments
 (0)