Skip to content

Commit

Permalink
Merge pull request #999 from bareos/dev/fbergkemper/master/s5017
Browse files Browse the repository at this point in the history
webui: optimize bvfs update cache calls
  • Loading branch information
pstorz committed Nov 26, 2021
2 parents a80a466 + f7d521e commit eefeb8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
- docs: update documentation of config data types [PR #962]
- Allow `release` command to be used in scripts [PR #961]
- webui: format total jobs and total files language-sensitive [PR #996]
- webui: optimize bvfs update cache calls [PR #999]

### Deprecated

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public function indexAction()
if($this->restore_params['client'] != null) {
try {
$backups = $this->getClientModel()->getClientBackups($this->bsock, $this->restore_params['client'], "any", "desc", null);
$this->updateBvfsCache();
}
catch(Exception $e) {
echo $e->getMessage();
Expand Down Expand Up @@ -315,6 +316,7 @@ public function versionsAction()
if ($this->restore_params['client'] != null) {
try {
$backups = $this->getClientModel()->getClientBackups($this->bsock, $this->restore_params['client'], "any", "desc", null);
$this->updateBvfsCache();
} catch (Exception $e) {
echo $e->getMessage();
}
Expand Down Expand Up @@ -559,10 +561,6 @@ private function buildSubtree()
$this->setRestoreParams();
$this->getJobIds();

if($this->restore_params['id'] === null || $this->restore_params['id'] === "#") {
$this->updateBvfsCache();
}

$this->getDirectories();
$this->getFiles();

Expand Down

0 comments on commit eefeb8b

Please sign in to comment.