cheshire-cat-ai / plugins-backend

The backend of The Cheshire Cat plugin directory
GNU General Public License v3.0
7 stars 5 forks source link

Decoupling the 'plugins' Endpoint from the In-Memory Cache System #14

Closed EugenioPetulla closed 1 year ago

EugenioPetulla commented 1 year ago

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.