koopjs / koop-cache-memory

Deprecated
Other
0 stars 4 forks source link

Make cache immutable. #20

Closed rgwozdz closed 2 years ago

rgwozdz commented 2 years ago

Data stored in the cache has been mutable. If you send GeoJSON to the memory cache, it gets stored, but it appears that some post-caching, koop-triggered transformations have the ability to mutate the GeoJSON while it is in the cache. This mutating breaks some functionality, because the cached feature data is suppose to be immutable.

This PR: