Simple Local Avatars
[resolved] Avatar image file name - add unique identifier (3 posts)

  1. th23
    Posted 2 years ago #

    Hi there,

    I really love this plugin which makes replacing the standard Gravatar implementation so easy :-)

    Just while using it, I noticed one thing: Because of (inteded) browser caching, an updated avatar of a user might not show up (immediately) if he deletes the old one and uploads another one. This is due to the selection of the uploaded filename ($user->display_name . '_avatar' in the function "unique_filename_callback").

    I would propose to add a (short) hash based on the current time() value - this would make all browser to load the new file immediately!

    Thanks for considering this addition in the next update...


  2. th23
    Posted 2 years ago #

    Hi there, any chance to get an update/ feedback on this suggestion? Thanks!

  3. Jake Goldman
    10up Engineer
    Plugin Author

    Posted 2 years ago #

    Resolved in 2.0. Now includes a timestamp per your suggestion, appended to the name.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Local Avatars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.