Correct attachment id error
Add a filter to change cache duration
Add plugin update hook