Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the cache be disabled? #2

Closed
canadaduane opened this issue Jun 10, 2023 · 4 comments
Closed

Can the cache be disabled? #2

canadaduane opened this issue Jun 10, 2023 · 4 comments

Comments

@canadaduane
Copy link

I'd like to turn off the cache during local development.

I set maxCacheSize to 0, but received the following error:

Started uws app on port 4200
with plugin(s) shelf
/home/duane/Projects/credit/node_modules/.pnpm/latermom@2.0.1/node_modules/latermom/index.js:39
            const [keyToRemove] = this.data.entries().next().value;
                                  ^

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Cache.get (/home/duane/Projects/credit/node_modules/.pnpm/latermom@2.0.1/node_modules/latermom/index.js:39:35)
    at /home/duane/Projects/credit/node_modules/.pnpm/chef-uws@1.4.0/node_modules/chef-uws/dist/server/index.js:101:52

Node.js v18.16.0

Is there another way to turn off the cache, so that static files that have changed will be reloaded every time from disk?

@Prozi
Copy link
Member

Prozi commented Jun 10, 2023

since latest 2.0.0 version of core

and 1.5.0 versions for "flavor" repositories - since they use 2.0.1

just use maxCacheSize = 0

@canadaduane
Copy link
Author

Thanks! You made so many awesome improvements, I'm still catching up :)

@Prozi
Copy link
Member

Prozi commented Jun 24, 2023

closing as I checked and I also assume this worked on your end too

@Prozi Prozi closed this as completed Jun 24, 2023
@canadaduane
Copy link
Author

Yes, it works well, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants