Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mattab opened this Issue · 4 comments

3 participants

Matthieu Aubry Anonymous Piwik user Anthon Pang
Matthieu Aubry
Owner

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 Piwik user

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.

Anthon Pang
Collaborator

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

Anthon Pang
Collaborator

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

Matthieu Aubry
Owner

(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..

Matthieu Aubry mattab added this to the Future releases milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.