Inefficient use of wp_cache_flush
-
Similar to this support thread that is now closed https://www.ads-software.com/support/topic/cache-flush-and-external-http-request-on-every-page-view/ I have been having massive issues with my site speed and this plugin.
After a lot of wasted time I found that the Feefo plugin triggers wp_cache_flush(); on every page load of my website. So if you have any caching in place Feefo makes it pointless as it is cleared on every page load.
This only occurs on the front end, WordPress dashboard page loads does not call the Feefo functions that trigger this as far as I can tell.
As a result of the cache clearing my site was much slower than it should be on the front end.
Why have the developers chosen to call wp_cache_flush(); on every page load? Within the feefo-ratings-and-reviews.php file I can see wp_cache_flush(); used five times across various functions.
This is hugely inefficient and can’t be good coding practise.
So I want to know why was this coding decision made and what purpose does it serve? What breaks if I comment this line out of the functions?
- The topic ‘Inefficient use of wp_cache_flush’ is closed to new replies.