Why do you flush all cache every 50 posts?
-
Found this code:
foreach ($post_ids as $post_id) {
if (++$i % 50 === 0) wp_cache_flush();Why do you do that? PHP has generators that will avoid the problems you are trying to solve by flushing all the cache.
You are also clearing the data by other plugins. Please don’t do that.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Why do you flush all cache every 50 posts?’ is closed to new replies.