Caching in Strapi with Strapi Middleware Cache

Most firms strive to retrieve and store data faster. It is because no one wants an application that is slow or lags. When there's a lot of data in the database, it becomes challenging to fetch data from the database swiftly, which may cause your application to lag. To avoid this, most software firms cache data.

This is a companion discussion topic for the original entry at

First of all, thanks for the article.
Very detailed and useful.

Secondly, is there a way to setup caching to happen after user-permissions plugin?
If a website serves paid articles, then it can’t use this middleware cache because every user requesting an article will be authenticated user. Which means every request will have an Authorization header.

The fact that this middleware runs before the user-permissions plugin doesn’t sound like a good choice in this case, unless I am missing something.