Skip to content

Commit

Permalink
[mikrobi#75] Replaced deprecated method clearCache() with refresh()
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsky committed Nov 26, 2014
1 parent 05b8e5c commit 51bd540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/components/babel/docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Changelog for Babel.

Babel 3.0.0-dev
==============
- [#75] Replaced deprecated method clearCache() with refresh()
- [#84] optimize OnResourceDuplicate
- [#44][#29] Using cultureKey instead of contextKey on BabelTranslation snippet
- [#70] fix is_folder to isfolder
Expand Down
4 changes: 2 additions & 2 deletions core/components/babel/model/babel/babel.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function synchronizeTvs($resourceId) {
$tv->save();
}

$this->modx->cacheManager->clearCache();
$this->modx->cacheManager->refresh();
}

/**
Expand Down Expand Up @@ -334,7 +334,7 @@ public function updateBabelTv($resourceIds, $linkedResources, $clearCache = true
}
$this->babelTv->save();
if($clearCache) {
$this->modx->cacheManager->clearCache();
$this->modx->cacheManager->refresh();
}
return;
}
Expand Down

0 comments on commit 51bd540

Please sign in to comment.