- This topic has 2 replies, 2 voices, and was last updated 9 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › Is WP eMember using WP_Object_Cache at all?
Tagged: object cache, wp cache
Hi,
Are you using any of the WP Object Cache in WP eMember, for instance to cache membership level or avatar image?
I’m customising my code to implement object cache on these 2 items but that would be silly if you guys are already running a cache on the same elements.
https://codex.wordpress.org/Class_Reference/WP_Object_Cache
thanks!
The eMember plugin does not use any of the WordPress object cache functions. Remember, we’re talking about a stateless machine; what kind of usage case are you running that requires object caching?
I use a persistent cache (memcache / redis). I’m simply storing the membership level and the avatar URL for all users in memory to avoid the database call. These elements are called on every single page.
Caching of these works perfectly well.