Skip to content

Commit

Permalink
fix add skipcache for api
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Dec 24, 2024
1 parent d8f6340 commit ca11075
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Api/V1/Admin/ResourceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ResourceController extends V1Controller implements ResourceContract
*
* @var array
*/
protected $requestException = ['page', 'limit', 'pagination', 'sort', 'order', 'token'];
protected $requestException = ['page', 'limit', 'pagination', 'sort', 'order', 'token','skipCache'];

/**
* Returns a listing of the resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public function destroy(int $id)
}
Event::dispatch('core.locale.delete.before', $id);

// clean the locale repository cache


$this->getRepositoryInstance()->delete($id);

Event::dispatch('core.locale.delete.after', $id);
Expand Down

0 comments on commit ca11075

Please sign in to comment.