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

Programmatic API: issue with caching #3667

Open
RogierKonings opened this issue Feb 24, 2025 · 0 comments
Open

Programmatic API: issue with caching #3667

RogierKonings opened this issue Feb 24, 2025 · 0 comments

Comments

@RogierKonings
Copy link

RogierKonings commented Feb 24, 2025

I am running a preview server that is retrieving drafts from a CMS.

const output = new Eleventy(inputPath, null, {
            configPath,
            quietMode: false
        });
const outputJSON = await output.toJSON();

I have a simply NodeJS server running with the code above behind an endpoint. When the request is called with the same inputPath parameter, the request is cached.

The issue seems to be happening @ here

The ESM import statement is caching the imports. As a result, i don't receive the latest outputJSON

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

1 participant