mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
#4791 Invalidate cache after adding a collection item for data consistency
This commit is contained in:
parent
1ef885c1a1
commit
a7320535e9
1 changed files with 1 additions and 5 deletions
|
@ -166,11 +166,7 @@ class CollectionController extends Controller
|
||||||
'order' => $count,
|
'order' => $count,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
CollectionService::addItem(
|
CollectionService::deleteCollection($collection->id);
|
||||||
$collection->id,
|
|
||||||
$status->id,
|
|
||||||
$count
|
|
||||||
);
|
|
||||||
|
|
||||||
$collection->updated_at = now();
|
$collection->updated_at = now();
|
||||||
$collection->save();
|
$collection->save();
|
||||||
|
|
Loading…
Reference in a new issue