WordPress.org

Ready to get started?Download WordPress

Forums

Nginx
[resolved] Purge on attachment update (5 posts)

  1. Abdussamad Abdurrazzaq
    Member
    Posted 1 year ago #

    Hello

    This is a great plugin but it lacks one feature. In WP 3.5 media attachments are a custom post type and when you update an attachment's title or description the nginx helper plugin should ideally call the purge URL so that the attachment page is updated. It doesn't seem to be doing that ATM. Could the developers please add this feature to the plugin?

    Regards,
    Abdussamad

    http://wordpress.org/extend/plugins/nginx-helper/

  2. Saurabh Shukla
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Would it be possible for you to fork this on GitHub and extend it yourself (http://github.com/rtcamp/nginx-helper/). The code is pretty simple. If not, kindly add this to the issue list here (http://github.com/rtCamp/nginx-helper/issues/) and we'll take care of it in due course.

    Regards.

  3. Abdussamad Abdurrazzaq
    Member
    Posted 1 year ago #

    Looks like all it requires is the addition of one line to purger.php:

    $this->purgeURL( get_attachment_link( $attachment_id ) );

    The above should be added to function purgeImageOnEdit line 323

  4. Saurabh Shukla
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I know. It is fairly simple. If you do fork the repo, make the change, test it and send a pull request, you'd have your name listed as one of the contributors to the plugin. Wouldn't that be nice?

    Using GitHub is pretty simple. You can Google it. We can do that ourselves, too. However, it's always nice to have contributions. It's way past our business hours, out here. So, we'd only make these changes tomorrow morning, Indian Standard Time. But, I hope I've enticed you enough :).

    Regards

  5. Saurabh Shukla
    Member
    Plugin Author

    Posted 1 year ago #

    Done

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic