WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. th23
    Member
    Posted 1 year 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...

    http://wordpress.org/extend/plugins/simple-local-avatars/

  2. th23
    Member
    Posted 1 year ago #

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

  3. Jake Goldman
    10up Engineer
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.