• Resolved marksabbath

    (@marksabbath)


    Hello!

    After running delete_user() on WordPress, wp-redis is flushing transients for some reason.

    How can I prevent that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hey @marksabbath,

    WP Redis doesn’t look into the delete_user action. Can you share more details about the debugging you’ve done that leads you to believe the issue is caused by WP Redis?

    Thread Starter marksabbath

    (@marksabbath)

    Hey, @danielbachhuber nice to see you around here ??

    I’ve been looking into a site that creates a transient when adding a new user. That transient contains a key that is being used to validate the user by sending an email to the user with that key.

    The plugin that actually does that all is masterstudy-lms-learning-management-syste
    m.

    This particular plugin on its line 389 in the file /lms/classes/user.php deletes the user (wp_delete_user) that is currently saved in the transient (with the key) and will be created after the activation via email.

    On a site with wp-redis installed and activated, that transient that is being saved right before the wp_delete_user (same file, line 384) gets flushed when the plugin executes the wp_delete_user.

    By deactivating wp-redis, this doesn’t happen anymore.

    I’ve also made a modification to that plugin moving the wp_delete_user right above the set_transient in the line 384 which fixes the problem as well, but still, I’m kinda interested in why wp_delete_user is triggering a flush transients, at least in this particular site.

    The core version currently in that site is 5.7.2. The version of the wp-redis is 1.1.2.

    Thread Starter marksabbath

    (@marksabbath)

    Never mind @danielbachhuber

    I’ve tried now with an update of that plugin and it seems that the issue is resolved.

    Sorry.

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    @marksabbath No worries! Glad you were able to figure it out ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘delete_user() flushing transients’ is closed to new replies.