Author Topic: Online map cache timeout  (Read 318 times)

Offline john_percy

  • Expert
  • Master of Locus
  • ****
  • Posts: 902
  • Thanked: 157 times
    • View Profile
  • Device: MotoG
Online map cache timeout
« on: April 22, 2021, 11:14:35 »
How do I set cache timeout to "never" (or "valid for" to forever)?
Do I set the value in the field to 0, -1, or a very large number?
I can't find anything in the knowledge base.


Sent from my moto g(6) plus using Tapatalk

 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12454
  • Thanked: 771 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Online map cache timeout
« Reply #1 on: April 22, 2021, 14:03:35 »
Hello John,
this parameter is defined as hours. So best should be to insert there some really high value. ~8000 hours per year? Add two more zeros and you are safe  ;)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline john_percy

  • Expert
  • Master of Locus
  • ****
  • Posts: 902
  • Thanked: 157 times
    • View Profile
  • Device: MotoG
Re: Online map cache timeout
« Reply #2 on: April 22, 2021, 15:38:59 »
If I set a really large number, a green toast says that it has been set to unlimited (ok); the field reverts to blank if I re-open the dialogue (possibly ok). If the timeout is set in providers.xml, the value reverts to that value the next time I run Locus. Is that correct behaviour? I'm running Locus Pro.

Sent from my moto g(6) plus using Tapatalk

 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12454
  • Thanked: 771 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Online map cache timeout
« Reply #3 on: April 23, 2021, 07:24:33 »
Probably is.

If you want to understand it better, few notes:
- value define in the app or in an extra XML file, define maximal value
- if a value above 365 days is set, a default value is used
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline john_percy

  • Expert
  • Master of Locus
  • ****
  • Posts: 902
  • Thanked: 157 times
    • View Profile
  • Device: MotoG
Re: Online map cache timeout
« Reply #4 on: April 24, 2021, 11:05:15 »
Ok, so what is the basic default value? Not cached, cached forever, or something else?

Sent from my moto g(6) plus using Tapatalk

 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12454
  • Thanked: 771 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Online map cache timeout
« Reply #5 on: April 24, 2021, 11:19:12 »
The default base value for all online/external maps, when not specified differently by the map provider, is infinity.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download