diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f4419eadaa..5e0055737f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -434,6 +434,14 @@ composer lint composer lint ``` +## Clearing the Cache + +If you need to clear the cache, you can do so by running the following command: + +```bash +docker compose exec redis redis-cli FLUSHALL +``` + ## Tutorials From time to time, our team will add tutorials that will help contributors find their way in the Appwrite source code. Below is a list of currently available tutorials: diff --git a/app/http.php b/app/http.php index f5429c8664..b1ed21b8d1 100644 --- a/app/http.php +++ b/app/http.php @@ -89,8 +89,6 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) { $collections = Config::getParam('collections', []); try { - $cache = $app->getResource('cache'); /** @var Utopia\Cache\Cache $cache */ - $cache->flush(); Console::success('[Setup] - Creating database: appwrite...'); $dbForConsole->create(); } catch (\Exception $e) {