Skip to content

Useful Commands

Edho Arief edited this page Dec 12, 2023 · 10 revisions

Resynchronise all news posts

tinker> NewsPost::syncAll()

Reset usergroups cache

tinker> app('groups')->resetCache()

Reindex all beatmapsets for search

php artisan es:index-documents --types=beatmapsets --inplace

Reindex all artist tracks/beatmapsets/posts/users/wiki (the ones in main es instance) for search

php artisan es:index-documents --inplace
php artisan es:index-wiki --inplace

Remove --inplace parameter to create new index instead.

Available --types:

  • artist_tracks
  • beatmapsets
  • posts
  • users

Multiple types can be specified separated by comma.

Add --cleanup parameter to remove the previous index when creating a new index instead of inplace.