Currently, the /plugins endpoint serves as the main controller for the cache system. This presents an issue with pagination, as making an initial paginated call results in an incomplete cached list.
To address this, we need to decouple the caching functionality from the specific endpoint. Additionally, some code refactoring is required to utilize only the cache retrieval function and the validity-check mechanism, triggering cache invalidation if the predetermined time interval has passed.
Currently, the
/plugins
endpoint serves as the main controller for the cache system. This presents an issue with pagination, as making an initial paginated call results in an incomplete cached list.To address this, we need to decouple the caching functionality from the specific endpoint. Additionally, some code refactoring is required to utilize only the cache retrieval function and the validity-check mechanism, triggering cache invalidation if the predetermined time interval has passed.