Look at this scenario where get_user_meta() is used twice and close together within a procedure. The Streamlabs username is queried in the user meta table as a way to ensure that a user is ready for Streamlabs services. Then we make the same query again.
We need to confirm that WP will not perform a second database query, and caches the first query result. I remember reading something like this but we need to confirm it. If not then we need to build and maintain suitable objects that can be shared across all extensions in the TwitchPress system.
Note the $GLOBALS value and how it is already in use. I may simply need to make much greater use of it.
This task is about establishing how WP operates and if needed creating a standard approach to OOP that any developer would need to adhere to when working within my system of plugins.
Look at this scenario where get_user_meta() is used twice and close together within a procedure. The Streamlabs username is queried in the user meta table as a way to ensure that a user is ready for Streamlabs services. Then we make the same query again.
We need to confirm that WP will not perform a second database query, and caches the first query result. I remember reading something like this but we need to confirm it. If not then we need to build and maintain suitable objects that can be shared across all extensions in the TwitchPress system.
Note the $GLOBALS value and how it is already in use. I may simply need to make much greater use of it.
This task is about establishing how WP operates and if needed creating a standard approach to OOP that any developer would need to adhere to when working within my system of plugins.