updated garbage collection

use different localstorage way to make more stable,
clears cache after 2 days.