Skip to content

Commit

Permalink
Merge pull request #555 from cmsedore/bugfix-forget-collection-cache-…
Browse files Browse the repository at this point in the history
…on-filldata

forget the cache entry when updating collection with fillData()
  • Loading branch information
luanfreitasdev authored Aug 15, 2022
2 parents 9495d5f + db4828f commit 3603532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PowerGridComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public function fillData(): mixed
$this->isCollection = is_a((object) $datasource, Support\Collection::class);

if ($this->isCollection) {
cache()->forget($this->id);
$filters = Collection::query($this->resolveCollection($datasource))
->setColumns($this->columns)
->setSearch($this->search)
Expand Down

0 comments on commit 3603532

Please sign in to comment.