DAT-3199 purge cache after change is done

This commit is contained in:
idradm 2015-09-25 17:19:48 +02:00
parent d95c9310fc
commit 13d398bced

View file

@ -166,11 +166,9 @@ class PortableInfoboxDataService {
protected function clear() {
$id = $this->title->getArticleID();
if ( $id ) {
// don't cache clear state
WikiaDataAccess::cacheWithOptions( $this->cachekey, function () {
return '';
}, [ 'command' => WikiaDataAccess::REFRESH_CACHE, 'cacheTTL' => 0 ] );
$this->propsProxy->set( $id, [ self::INFOBOXES_PROPERTY_NAME => '' ] );
// don't cache clear state
$this->purge();
}
}
}