[MXS-1475] Create on-demand caching that can easily be enabled Created: 2017-10-16 Updated: 2018-03-21 Resolved: 2018-03-16 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | cache |
| Affects Version/s: | None |
| Fix Version/s: | 2.3.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Michaël de groot | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2017-46, MXS-SPRINT-50, MXS-SPRINT-51, MXS-SPRINT-52, MXS-SPRINT-53 | ||||||||
| Description |
|
Hi, Please create on-demand caching (versus caching everything). In most ORM's it is quite difficult to add a comment in the query, so I would prefer to use proxy-session variables: SET PROXY cache_enabled=1; This provides functionality for a couple of use cases:
Please make this work out of the box by just adding 'filter=ondemandcache' (or however you want to call it) to router config, optionally setting default ttl's but with a sane default built in as well (5 minutes / 5 minuets + 30 seconds?). Please also add filter=ondemandcache in the example config as (I suppose?) the extra expense for checking a 'SET PROXY' command is very small. If you start to use SET PROXY for other settings it would need to be checked anyways. Thank you, |
| Comments |
| Comment by Johan Wikman [ 2018-03-16 ] | ||||
|
With the following user variables
For instance:
|