// Empty address cache on update #PSCFV-4534
This commit is contained in:
1 parent
6e911cd932
commit
08dca917c2
1 file changed
+11
@@ -175,6 +175,17 @@ class AddressCore extends ObjectModel
|
|||||||
Customer::resetAddressCache($this->id_customer);
|
Customer::resetAddressCache($this->id_customer);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function update($null_values = false)
|
||||||
|
{
|
||||||
|
// Empty related caches
|
||||||
|
if (isset(self::$_idCountries[$this->id]))
|
||||||
|
unset(self::$_idCountries[$this->id]);
|
||||||
|
if (isset(self::$_idZones[$this->id]))
|
||||||
|
unset(self::$_idZones[$this->id]);
|
||||||
|
|
||||||
|
return parent::update($null_values);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see ObjectModel::delete()
|
* @see ObjectModel::delete()
|
||||||
|
|||||||
Reference in new issue
Block a user