-
Notifications
You must be signed in to change notification settings - Fork 145
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
Feature request: storing the creation date #573
Comments
What would the creation date be used for? |
It would be used as a reminder and debug helper. Especially, when running a large website that has an editorial team. So many changes happen; automatic redirection rules (because of slug changes), manually added redirection rules (part of the editorial workflow, post deleted, etc..), several bulk imports. So, end of the day it's hard to recognize when the redirection added. Sometimes facing the problem like this;
:) |
It would be great to automatically delete redirections not used for more than x months. I have, in my db, around 600 items that have been never accessed but I don't know with one is new or old. At the end, I would like a generic SQL request to remove periodically all never used old items to keep the system light. |
I know it is crazy but here you can find a PR #3565 |
Thanks, but adding a database column isn't the difficult part of this. Any feature with the creation date will need a lot more to be added and I would strongly advise you not to do this as it may cause future database problems.
Clearing out unused redirects will have no impact on your system performance and negligible impact on storage. |
Thank you for your answer!
Yes, I understand.
Oh when I see the number of automatically created redirections, I would expect at least an impact on storage. The contributors on my website often change the slug before to communicate on the post, it creates redirections that are never triggered. On this site, I can see 54 redirections on 250 (in the redirect group) that have never been triggered, almost 22% of items are not useful. |
Sadly that's not really how databases work and it's unlikely to have any meaningful impact.
The environmental impact is a good point, but given that you are talking about maybe 2k of data then I think not taking one photo on your phone will have a far greater impact on the planet than 50 or so redirects. As I discuss here it's likely not something to worry about. |
You're right. If you look at the problem globally, it won't have any impact. Also I'm thinking about two things: 1 - The message sent to users by getting an option to remove unused data is quite good, it makes people responsible for their actions / datas : you can clean your data (and it is automatic). It has little impact on attitudes, but it is not null. 2 - There might be other people like me and I think it is important to have very clean datas and not to have old and useless rows. In my opinion, to have 20% of redirections without any access is a significant pollution for statistics and debugging. If I could remove it periodically, it would be a pleasure and reassuring in a way.
Really interesting !
Yes I love "last access" for that! But it is not possible to get never used redirections because "last access" is null. So it isn't possible to really clean. Anyway, I love Redirection plugin, everything inside it is so well thought, it was a real pleasure to discover it in depth. |
Storing the creation date in DB would be useful for the redirection rules. You might not want to alter scheme just for the
created_at
column. But, please consider this as well, if you need to alter the table for another reason.The text was updated successfully, but these errors were encountered: