diff --git a/README.md b/README.md index c2f029dbb..728a7fbaf 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,22 @@ A non-comprehensive list of things to look out during development and review: ### Integrations +#### Redis + +Redis is used to store sessions and caches in production. +To run it locally, start the container in `docker/docker-compose.yml': + +```bash +$ cd docker +$ docker compose up +``` + +If you need to inspect redis via `redis-cli` you can use: + +```bash +$ docker compose run --interactive --tty --rm redis redis-cli -h redis +``` + #### AWS If you want to test with AWS, you can fill in all the `AWS_*` values with your own credentials in `.env.dist`. @@ -255,7 +271,11 @@ Due to how [caches in Nitro](https://nitro.build/guide/cache) work, they automat when their function changes. However, this heuristic does not cover other functions the cached function depends on. You can manually clear caches: ```bash -rm -rf .nuxt/cache +# when using the filesystem +$ rm -rf .nuxt/cache +# when using redis +$ cd docker +$ docker compose exec redis sh -c "redis-cli KEYS \"cache:*\" | xargs -n 100 redis-cli DEL" ``` #### Module did not self-register diff --git a/components/admin/AdminStorageItem.vue b/components/admin/AdminStorageItem.vue index 9c65d2a0c..af5992ab6 100644 --- a/components/admin/AdminStorageItem.vue +++ b/components/admin/AdminStorageItem.vue @@ -54,8 +54,7 @@ const remove = async () => { - -
+