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

Why does index.yaml exist? #2

Open
leetNightshade opened this issue Jan 4, 2019 · 1 comment
Open

Why does index.yaml exist? #2

leetNightshade opened this issue Jan 4, 2019 · 1 comment

Comments

@leetNightshade
Copy link

If the comment is being stored with the page, why is it also being saved in a single index file? This seems like a waste of space and unneeded processing time.

@codeshell
Copy link
Owner

Ref: getgrav#65 (comment)

That one is for administrative and backup reasons. No comment is ever deleted from the index file. Just marked as deleted (soft delete). In case you delete pages and lose comments you didn't mean to delete. There are other (better) ways like git sync or backup cron jobs.
For development it's helpful, for production it might/could/should be disabled.

Most importantly, to use the admin panel to manage all comments (e.g. batch delete them) there is probably no way around an index file of some kind (compare it to how TNTsearch works).

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