Questions tagged [diskcache]

DiskCache is an Apache2 licensed disk and file backed cache library, written in pure-Python, and compatible with Django.

46 questions
1
vote
0 answers

AVPlayer not starting until cell is recycled

I have a UITableView that I am using to render out tweets that contain gifs. These are returned from Twitter as MP4's so I am using AVPlayer. Using HanekeSwift I am caching the item and then playing it in the tableview. The issue I am having is that…
Tim J
  • 1,211
  • 1
  • 14
  • 31
1
vote
1 answer

Hard disk reading file speed exceeds declared speed. Reading via FileStream

I'm reading file 800 Mb via FileStream (.NET 3.5, Console application). The hard drive has SATA 3 bus (600 Mb/s), but I can't figure out: why the time to read the file is only 486 ms. Things get even worse when I try to read it asynchronously - it…
JohnIdlewood
  • 356
  • 3
  • 12
1
vote
3 answers

bash while loop through a file doesn't end when the file is deleted

I have a while loop in a bash script: Example: while read LINE do echo $LINE >> $log_file done < ./sample_file My question is why when I delete the sample_file while the script is running the loop doesn't end and I see that the log_file is…
Mohammad
  • 41
  • 5
1
vote
0 answers

Disk cache folder is empty : Qt 4.8

I'm trying to enable disk cache for my app for a better user experience. I used this Documentation as the guideline for this. I initially thought that I configured it properly since I didn't get any errors but then saw my disk cache folder is empty.…
Isuru
  • 430
  • 5
  • 21
1
vote
1 answer

DiskLRUCache for Bitmaps (and others) in Android

In android many image loading libraries (like Picasso -- which uses 2% of the storage for disk cache, Glide) use disk cache in addition to in memory lru cache. I can understand why this might be useful for images downloaded from the network -- if…
1
vote
1 answer

Disabling local store's write cache in AWS

To disable a local disk's write cache, one can use hdparm in the following way: sudo hdparm -W 0 /dev/sda (where /dev/sda is the device file of the local disk) On AWS, I tried to use this to disable the write cache for a local instance store which…
And Or
  • 11
  • 3
1
vote
1 answer

Readyboost v Disk cache

I am considering buying a new laptop and have noticed a number of the mid range offerings have 8Gb cache with the 1Tb disk. I wondered if anyone has experience of the benefit of this configuration and also whether just adding an appropriate amount…
Tony Armitage
  • 11
  • 1
  • 4
1
vote
0 answers

Same Etags for different users from different machines

If two users try's to access same Url of a site which is being hosted in windows azure from two different machines and as result if they both get same ETag. Does that mean cache is being implemented on the web server ? I am thinking that if cache is…
user2486535
  • 428
  • 1
  • 5
  • 21
1
vote
2 answers

Disk Caching in Volley is not working

I am using Volley for caching of images in the app. The memory caching is working fine, but no image is getting cached on the disk. The code is given below VolleySingleton.java public class VolleySingleton { public static final String TAG =…
SathMK
  • 1,171
  • 1
  • 8
  • 18
1
vote
0 answers

Disk Cache, Loading Time, Network Transaction & Android

First, I would like to know "Disk Cache" will really improve the loading time over network transaction if the network bandwidth is not a major concern ? Why Android take too much time when I create a disk cache around 10 MB ? (Worse than Network…
Mike
  • 11
  • 1
1
vote
2 answers

Android best way of caching images

I am making an attempt to build the most efficient way of caching images downloaded from the web for my app, a few years ago I tried to do this and could not find an efficient method of making this work until I stumbled upon the lazylist adapter…
Edmund Rojas
  • 6,376
  • 16
  • 61
  • 92
0
votes
1 answer

Prevent Chrome to cache JS file

When I'm connected too long in my back office and tried to log in again I'm rejected so I should clear my browser (Chrome,FF,Edge) every time to get access . So i noticed that when the file named login.js is load from disk cache I can't access. here…
0
votes
1 answer

How to get all elements by tag?

I use diskcache to persist my data. I save users cache.add(key=k, value=v, tag="users"), now i want to get all users by tag, but there is no such method. How i can do this? I've found only one way to do this: def _get_all(self): r = [] for…
dikkini
  • 1,184
  • 1
  • 23
  • 52
0
votes
1 answer

Duplicate images while loading the images from android assets as Bitmap and setting ImaegView using glideV4

I tried to retrieve bitmap from the assets and then try to load the Horizontal recyclerview image list using glide as asBitmap(). I am getting the duplicate images and the mismatch images(loading wrong image in place of the required image). Below…
0
votes
1 answer

UIWebView won't use disk caching for resoruces downloaded by loadHTMLString function

I load HTML codes into my UIWebView via HTML strings with loadHTMLString function. There are same 1.5 MB of font files in those HTML pages. After first download of fonts, it is using them from RAM, according to cellular data usage statistics.…
Salih
  • 171
  • 1
  • 12