jbake-org / jbake

Java based open source static site/blog generator for developers & designers.
http://jbake.org
MIT License
1.11k stars 327 forks source link

Deleted documents are not removed when using cache. #477

Open OndraZizka opened 6 years ago

OndraZizka commented 6 years ago

If the source of a document is removed from content/, and JBake is ran with cache, the document doesn't disappear from the rendered site. It also stays in the index and tags.

Is this a known bug planned to be fixed? Or it a feature, and the users are supposed to delete cache on document removal? Thanks.

jonbullock commented 6 years ago

Hmm probably a case that isn't captured and dealt with, but should be.

Is this while the server is running in watch mode? Or over multiple executions of the bake option?

OndraZizka commented 6 years ago

TBH I didn't test more scenarios, I just see them being put to the web. I'll test and update this issue.

jonbullock commented 6 years ago

That would be great @OndraZizka

ancho commented 6 years ago

We don't do it yet but we should.

Quick sketch of the scenario: