mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
DAT-3199 purge cache after change is done
This commit is contained in:
parent
d95c9310fc
commit
13d398bced
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue