You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think most users would consider this sane behavior. Links cannot be undeleted, therefore permanently removing the logs about deleted links shouldn't be a problem.
Note: There is a delete_link action hook that a plugin could use to DELETE FROM the YOURLS_DB_TABLE_LOG table itself:
However I think there is merit to including a function that does this in includes/functions-infos.php like the one above, that takes a keyword and deletes the relevant logs. Maybe it'd be called yourls_delete_stats_for_keyword().
While a plugin can run a raw SQL query to accomplish this, I think plugins needing to mess around in a core table isn't ideal.
Code of Conduct
Submission validity
Summary
When a link is deleted, the corresponding log entries remain in the DB.
Motivation
Trying to keep the DB as lean as possible.
Describe the solution
No response
The text was updated successfully, but these errors were encountered: