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

Rename oc_filecache to oc_fileindex #18027

Closed
PVince81 opened this issue Aug 3, 2015 · 8 comments
Closed

Rename oc_filecache to oc_fileindex #18027

PVince81 opened this issue Aug 3, 2015 · 8 comments

Comments

@PVince81
Copy link
Contributor

PVince81 commented Aug 3, 2015

The problem:

  • many people believe this table is just a cache that can be cleared and sometimes resort to clearing it
  • clearing the file cache loses association of shares, tags, etc with files

Solution:

  • rename oc_filecache to oc_fileindex

Also: the file cache table is really more an index or a metadata index than a cache.
If people do find about old blogs advising to clear oc_filecache, they won't find this table.
Having the table as oc_fileindex will give the impression that it is something different, so more of a psychological solution 😄

Not sure if the table can be rename properly with a change of db_structure.xml.

@icewind1991 @DeepDiver1975 @karlitschek @schiesbn @nickvergessen

@PVince81 PVince81 added this to the backlog milestone Aug 3, 2015
@DeepDiver1975
Copy link
Member

Well - people need to learn not to play around with the database.

Regarding the migration - db_structure.xml cannot handle this.

I vote for won't fix

@MorrisJobke
Copy link
Contributor

I also think that this will add more trouble. Don't mess around with the DB - that's it.

@PVince81
Copy link
Contributor Author

PVince81 commented Aug 3, 2015

Okay, thanks for the feedback.

@ghost
Copy link

ghost commented Mar 30, 2016

don't truncate the filecache table, EVER. You will lose data. Don't do it. Don't!!!!

@gael-ian
Copy link

Well - people need to learn not to play around with the database.

So don't give them a way to do it easily via occ

@PVince81
Copy link
Contributor Author

@gael-ian I wasn't aware that there was an occ command to allow this... Will investigate and destroy it

@PVince81
Copy link
Contributor Author

There's a command occ files:cleanup. I tested it and it doesn't clear the file cache but only tries to repair and remove orphaned entries.

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants