PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
40 stars 4 forks source link

Add ability to index specific files #472

Open fluffy-critter opened 2 years ago

fluffy-critter commented 2 years ago

Expected Behavior

reindex should take some optional file path arguments which allow you to specifically reindex individual files. For example, flask publ reindex FILE FILE ...

Context

Sometimes it's useful to reindex an individual file without doing a full content reindex (for example when composing an entry on a machine with slow storage).

fluffy-critter commented 2 years ago

Although, obvious problem is that if trying to reindex a file into a site whose database isn't already populated, it will almost certainly lead to an ID collision, because it won't know the allocated IDs or the entry count.