How to expire views cache in code or with rule? I have a view with block display that shows a user's picture and profile info. The view is cached for 1 hour. 

How can I expire that cache when the user updates the profile?
I ended up using Views Cache Actions. It allows to use rules to expire a specific view or views displays when a certain event occurs (like user profile save).