Title: Transient + object cache compatibility
Last modified: June 2, 2026

---

# Transient + object cache compatibility

 *  [Mirco Babini](https://wordpress.org/support/users/mirkolofio/)
 * (@mirkolofio)
 * [5 days, 13 hours ago](https://wordpress.org/support/topic/transient-object-cache-compatibility/)
 * When using object cache, sometimes the cache might be flushed and the persistent_login_user_count_temporary
   transient can return false. Triggering those:
 * Deprecated: Automatic conversion of false to array is deprecated in /wp-content/
   plugins/wp-persistent-login/classes/wp-persistent-login-user-count.php on line
   870
    Warning: Undefined array key 0 in /wp-content/plugins/wp-persistent-login/
   classes/wp-persistent-login-user-count.php on line 870
 * Add a check to ensure the transient is set, otherwise initialize if as array()
   before taking actions on it.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftransient-object-cache-compatibility%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-persistent-login/assets/icon-256x256.jpg?rev=1847715)
 * [Persistent Login](https://wordpress.org/plugins/wp-persistent-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-persistent-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-persistent-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-persistent-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-persistent-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-persistent-login/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mirco Babini](https://wordpress.org/support/users/mirkolofio/)
 * Last activity: [5 days, 13 hours ago](https://wordpress.org/support/topic/transient-object-cache-compatibility/)
 * Status: not resolved