Code Monkey home page Code Monkey logo

Comments (3)

brettg2 avatar brettg2 commented on June 14, 2024 1

+++++++++++++++++++++++++++++++++1

Cache folder was last reported at 26 gigs!!

from meteor-scss.

copleykj avatar copleykj commented on June 14, 2024 1

From looking at how caching works, it seems that the caching-compiler package uses the lru-cache package. From the documentation of that package it looks like the cache never gets pruned in normal operation unless you set the max_age option when instantiating the cache and then try to access a cache key that is older than that age. Currently the caching compiler package doesn't set a max age, and even if it did, it sets the key to a hash of the compilation result and therefore it would only prune if you hadn't made changes to your sass files and the last time it was compiled was longer than the `max_age.

I think that the solution might lie in a PR on meteor core repo to add a max_age option and manually calling cache.prune() on the cache if it grows beyond a certain number of objects.

from meteor-scss.

derwaldgeist avatar derwaldgeist commented on June 14, 2024

Thanks for looking into this, highly appreciated!

from meteor-scss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.