Skip to content

gclue-wifi: Implement a cache of MLS lookup results

Philip Withnall requested to merge pwithnall/geoclue:114-cache-wifis into master

This should avoid a significant amount of the HTTPS traffic to the MLS website generated by immobile computers and laptops which can see the same set of Wi-Fi networks all the time, modulo some noise.

Currently the cache can grow without bound. This could be remedied in future, either by putting size limits on the cache and expiring by least-recently used (LRU caching); and/or by dropping the cache when low on memory (as per GMemoryMonitor).

Cache size limits are now implemented.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #114 (closed), #126 (closed).

Edited by Zeeshan Ali Khan

Merge request reports