public function test_clearCache_shouldActuallyClearTheCacheEntry()
 {
     $this->setSettingValueInCache('my0815RandomName');
     $this->assertTrue($this->hasCache());
     SettingsStorage::clearCache();
     $this->assertFalse($this->hasCache());
 }
Exemplo n.º 2
0
 /**
  * Removes all settings for this plugin from the database. Useful when uninstalling
  * a plugin.
  */
 public function removeAllPluginSettings()
 {
     Piwik::checkUserHasSuperUserAccess();
     $this->storage->deleteAllValues();
     SettingsStorage::clearCache();
 }