Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--cache command line option ignored #291

Open
joto opened this issue Jul 19, 2022 · 2 comments
Open

--cache command line option ignored #291

joto opened this issue Jul 19, 2022 · 2 comments

Comments

@joto
Copy link

joto commented Jul 19, 2022

The documentation says I can run t_rex serve with --cache DIR to enable the cache. But this doesn't work with last released version. In the log it says somewhere "No cache". I can enable the cache in the config file, but I'd rather do this on the command line, because it is more flexible that way.

@Dirc
Copy link

Dirc commented May 25, 2023

Hi @joto,

I had a simmilar issue where --port was not picked up. Looking into the code it seems that trex either uses a config file OR commandline options, but it looks like you can't use both at the same time:

https://github.com/t-rex-tileserver/t-rex/blob/6d6de368bca82ac5a03401ad9218b18294a960f2/t-rex-webserver/src/runtime_config.rs#LL44C1-L66C2

@pka pka changed the title --cache does't work --cache command line option ignored Jun 13, 2023
@pka
Copy link
Member

pka commented Jun 13, 2023

@Dirc is right. This is certainly not what users expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants