Fix cache reset and expired pixbuf cache (see issue #1179)