dhmgroup / dart-wp

A WordPress API client for dart with support for WooCommerce and custom namespaces.
https://pub.dev/packages/wordpress_api
BSD 3-Clause "New" or "Revised" License
79 stars 28 forks source link

Caching of API Requests for offline usage #19

Closed llorenzo closed 3 years ago

llorenzo commented 3 years ago

Ist that something that could be implemented? In combination of image caching this could help for offline usage.

theeomm commented 3 years ago

A great suggestion that may be considered. For now, this suggestion will be left open to the community while I focus on the implementation of authorized requests.

theeomm commented 3 years ago

As of v0.3, caching can be implemented with the initialization of a custom Dio instance with an interceptor like Dio HTTP Cache Interceptor. Thank you for the suggestion