title: How to disable cache when loading images
body: <p>I am using Glide image library with a Recycler View to load hundreds of images as the user scrolls down from website URL's.The problem is that glide is caching all these images thus increasing app size to a lot of un-needed disk space. Thus I want to disable cache.Unfortunately I am not getting an exact method to do so yet.</p>
  
  <p>I tried using</p>
  
  <p><code>Glide.with(context)
                      .load(itemList.get(position)
                      .skipMemoryCache(true)
                      .getPhoto()).into(holder.Photo);</code></p>
  
  <p>where itemList.get(position) contains URL
  but this is not being accepted with a not defined error in android studio.</p>
  
  <p>What would be a good solution to this problem. Any other libraries which can help for loading images from URL is also appriciated.</p>
  
  <p>Edit: .diskCacheStratergy, .skipMemoryCache and .signature dosn't seem to work inside Adapters where I am loading all the images</p>
  
  <p>Edit 2:There was a problem in the build I think .diskCacheStratergy and .skipMemoryCache options came once I refreshed and synced my app.gradle again</p>