radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Cache #90

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Is your feature request related to a problem? Please describe. It would be nice to be able to cache things for a certain time.

Describe the solution you'd like Like Laravel's implementation: https://laravel.com/docs/8.x/cache, a cache facade to get/set items in the cache.

Describe alternatives you've considered Transients: https://developer.wordpress.org/apis/handbook/transients/ or Object cache: https://developer.wordpress.org/reference/classes/wp_object_cache/

Additional context transients aren't deleted until the transient is called, so perhaps a wp_cron will need to be implemented to do this... Or just rely on the transient behaviour.

BenRutlandWeb commented 3 years ago

transients use the object cache under the hood. The transients API looks to be the better API to wrap with a cache manager