kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
224 stars 85 forks source link

removeInvalidFavorites bottleneck #116

Open Slamik opened 5 years ago

Slamik commented 5 years ago

Hello,

I've noticed that removeInvalidFavorites called from getFavoritesArray is heavy load on page with lot of favaorites.

Also, get_user_favorites() and get_user_favorites_count() called both on page lead to double query requests. image