Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#31918 closed enhancement (fixed)

Add action to clean_user_cache()

Reported by: djpaul's profile DJPaul Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: Cc:


It would be convenient if there was an action at the end of clean_user_cache() to allow other developers to clear their own user-related and user-keyed caches when WordPress clears some of its own caches.

Attachments (1)

31918.patch (423 bytes) - added by elliott-stocks 9 years ago.

Download all attachments as: .zip

Change History (5)

#1 @DrewAPicture
9 years ago

  • Component changed from General to Users
  • Keywords needs-patch added

Hi @DJPaul, care to submit a patch for your hook suggestion?

#2 @elliott-stocks
9 years ago

Patch submitted, I'd also find this useful!

#3 @wonderboymusic
9 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Awaiting Review to 4.4
  • Owner set to wonderboymusic
  • Status changed from new to assigned

#4 @wonderboymusic
9 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 34318:

Add a 'clean_user_cache' action at the end of clean_user_cache(). This is mighty similar to clean_post_cache().

Props elliott-stocks, wonderboymusic.
Fixes #31918.

Note: See TracTickets for help on using tickets.