public function onSiteDeleted($idSite) { // we do not delete logs here on purpose (you can run these queries on the log_ tables to delete all data) Cache::deleteCacheWebsiteAttributes($idSite); $archiveInvalidator = new ArchiveInvalidator(); $archiveInvalidator->forgetRememberedArchivedReportsToInvalidateForSite($idSite); $measurableStorage = new Storage(Db::get(), $idSite); $measurableStorage->deleteAllValues(); }
public function test_deleteAll_ShouldRemoveTheEntireEntry() { $this->saveMultipleValues(); $this->assertSettingNotEmpty($this->setting); $this->assertSettingNotEmpty($this->createSetting('test2')); $this->assertSettingNotEmpty($this->createSetting('test3')); $this->storage->deleteAllValues(); $this->assertSettingEmpty($this->setting); $this->assertSettingEmpty($this->createSetting('test2')); $this->assertSettingEmpty($this->createSetting('test3')); }