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

All Plugins should hook on SitesManager.deleteSite and delete the data for the newly deleted website #585

Closed
mattab opened this issue Mar 3, 2009 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@mattab
Copy link
Member

mattab commented Mar 3, 2009

Steps
- add hooks in SitesManager.deleteSite
- review all existing data in the DB related to a given website
- make sure all plugins listen to SitesManager.deleteSite and delete the website data from the DB

@anonymous-matomo-user
Copy link

I think "low" priority isn't appropriate.

Deleting a site from database cut many many mb! Just think about the visit_log, and shrinking visit_log leads to a optimized archive process, smaller archives tables, a quicker db, etc.

@robocoder
Copy link
Contributor

(In [4028]) refs #585 - add SitesManager.deleteSite hook

@robocoder
Copy link
Contributor

(In [4031]) fixes #2148, refs #585

@mattab
Copy link
Member Author

mattab commented Apr 28, 2011

(In [4590]) Fixes #585 Now, every entity linked to a site is deleted when a site is deleted.
Only the logs and archives are not deleted, because it could result in severe data loss. Better deal with this later on..

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants