Added clean cache for quantity available

Added a function to be abble to clean cache available when necessary.