If you don't have redis in your skillset, this is the best place to start with
i will show you how to elevate your backend and increase the speed of your api by adding redis caching layer
very easy and very simple, but the results are significant
1- You will have to install the redis php library
You can choose from two libraries
https://github.com/phpredis/phpredis
-- OR --
https://redis.io/docs/latest/develop/...
2- Before sending the data back to the frontend, we will take a copy and save it on the caching server using the ( set ) function
3- Cache invalidation - we will invalidate cache if user updates his information