lasso-js / lasso

Advanced JavaScript module bundler, asset pipeline and optimizer
581 stars 75 forks source link

Removing entries from LassoCache #216

Open Hafas opened 7 years ago

Hafas commented 7 years ago

The application I'm currently building uses MarkoJS and the template and styles can change during runtime. I'm using buildResourceCacheKey and buildBundleCacheKey (#215) to make sure that resources and bundles are rewritten when necessary.

Now I can imagine that - over time - the cache will contain lots of unused entries. The used library for caching, raptor-cache, has the necessary methods remove and free, but as I see it, there is no easy or documented way to access those methods, or am I missing something?