WordPress / wporg-gp-translation-events

Translation Events on WordPress.org
https://translate.wordpress.org/events/
GNU General Public License v2.0
13 stars 2 forks source link

Merge Event_Repository_Cached into Event_Repository class #348

Closed trymebytes closed 2 months ago

trymebytes commented 2 months ago

In this PR we merging the classes Event_Repository_Cached and Event_Repository into a single Event_Repository class to allow the usage of cached results. We have only implemented caching for the get_event() function at the moment.

The Event_Repository_Cached class will then be deleted on completion of the merging.

trymebytes commented 2 months ago

Thank you @psrpinto for the review!

trymebytes commented 2 months ago

Caching for get_event() for fetching a single event has been implemented in this PR, we will handle other cache implementations in a follow up PR.