Skip to content

Add pretext cleanup command to prune outdated generated files #1242

Description

@oscarlevin

While developing a project, an author will likely generate lots of latex-images and similar that don't end up in the final project. On every build that generates assets, we cache these images. That makes rebuilding fast, but as soon as an image is abandoned, it will just sit in the cache forever.

A pretext cleanup function could get the hash of every cached image and save only those that are still in the document.

Related to #1218, but not automatic. The cleanup command should also prune the logs (maybe completely), depending on what the automatic policy is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions