Title: Flow-Flow logs debug messages when WP_DEBUG is false
Last modified: July 7, 2026

---

# Flow-Flow logs debug messages when WP_DEBUG is false

 *  [markohoza](https://wordpress.org/support/users/markohoza/)
 * (@markohoza)
 * [1 week ago](https://wordpress.org/support/topic/flow-flow-logs-debug-messages-when-wp_debug-is-false/)
 * Hi,
 * I noticed a bug in the Flow-Flow plugin logging logic.
 * In `libs/flowflow/core/src/LABase.php`, inside `refreshCache()`, debug messages
   are logged when `WP_DEBUG` is disabled:
 *     ```wp-block-code
       if (!defined('WP_DEBUG') || !WP_DEBUG) {
           $this->log('Flow-Flow Debug: refreshCache called ...');
       }
       ```
   
 * This condition appears to be inverted. With `define('WP_DEBUG', false);`, the
   plugin still writes repeated “Flow-Flow Debug” messages to the error log during
   cron cache refreshes.
 * Expected behavior: debug logs should only be written when `WP_DEBUG` is enabled.
 * Suggested fix:
 *     ```wp-block-code
       if (defined('WP_DEBUG') && WP_DEBUG) {
           $this->log('Flow-Flow Debug: refreshCache called ...');
       }
       ```
   
 * The same inverted condition appears multiple times in `refreshCache()`, so all
   related debug log checks should be updated.
 * Thanks.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fflow-flow-logs-debug-messages-when-wp_debug-is-false%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/flow-flow-social-streams/assets/icon-256x256.png?rev=2414430)
 * [Flow-Flow Social Streams](https://wordpress.org/plugins/flow-flow-social-streams/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flow-flow-social-streams/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flow-flow-social-streams/)
 * [Active Topics](https://wordpress.org/support/plugin/flow-flow-social-streams/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flow-flow-social-streams/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flow-flow-social-streams/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [markohoza](https://wordpress.org/support/users/markohoza/)
 * Last activity: [1 week ago](https://wordpress.org/support/topic/flow-flow-logs-debug-messages-when-wp_debug-is-false/)
 * Status: not resolved