OpenRA / openrauseraccounts

Connect phpBB forum accounts to OpenRA installations
https://forum.openra.net/ucp.php?i=232
GNU General Public License v2.0
3 stars 3 forks source link

Cache badge data #9

Closed ghost closed 6 years ago

ghost commented 6 years ago

Adding and updating badges replicates how ranks are handled which are cached by obtain_ranks() within the class service in service.php. This can probably be replicated too with a similar function that extends that class. Probably desirable for showing badges in the profile information of the post row.

ghost commented 6 years ago

The function and class mentioned above seems to be specifically designed for ranks. https://area51.phpbb.com/docs/code/3.2.x/classes.html seems to be the class used for managing caching data objects. It can also be constructed with $this->cache = $phpbb_container->get('cache'); This document https://wiki.phpbb.com/Cache describes that both data objects and sql result sets can be used for caching.

I don't plan to continue working on this in the next time unless users experience issues related to this.