• Resolved dangrimes

    (@damonmaldonado)


    Hi, I’m hoping this may be a part of your plugin or know a way for me to accomplish this. On our woocommerce site, we are finding our website’s object cache is randomly being flush about once per day. I tried looking at the crons but don’t see anything listed in the wp control plugin that matches up with the times the cache is being cleared.

    Can query monitor monitor/log when any WP functions are called? I would to see when a certain function is being called (I believe it’s called wp_cache_flush) and what plugin may be calling it. Is this something your plugin can do? Or maybe know of a better way to figure it out?

Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Unfortunately not, this is beyond what you can monitor at the PHP level. If the wp_cache_flush() function called a WordPress action then you could write something to monitor that, but it doesn’t.

    I’m honestly not sure what the best tool would be to do this.

    Are you in control of the files for WordPress itself on your site? If so, I would be tempted to add debugging code directly to the wp_cache_flush() function, for example to logg a message and the stack trace to your error log, then monitor that.

Viewing 1 replies (of 1 total)

The topic ‘A way to log function calls in query monitor?’ is closed to new replies.