Poor performance in wpua_has_gravatar() function
-
In the wpua_has_gravatar function, a request is sent to the the gravatar server once for each avatar to display on the site, and it’s done in the main thread, meaning it is ridiculously slow. (Increased my page load speed by 5+ seconds)
There is also no way to disable this behaviour. There is cache, but for users not using object cache they are gonna hammer the gravatar server for requests on each page load.
So, first of all the wpua_has_gravatar() function should queue up a WP_Cron to check for the presence of a gravatar and not run on the main thread.
Second, it should store the result in wp_usermeta, not the object cache, because some people don’t use object cache. Until that is resolved, this plugin is very flawed.
- The topic ‘Poor performance in wpua_has_gravatar() function’ is closed to new replies.