Questions tagged [cache]

A location or process for storing of transitory or temporary data in order to improve application or system performance.

1588 questions
8
votes
3 answers

Use Varnish Cache only on-disk

The situation is: I' m building a PHP application and need http caching. Varnish is great and lots of people tell me that Varnish stores the cached data in RAM. I want it to cache on hard disk. Is there any way to store the Varnish cache-data on…
Great Kuma
7
votes
2 answers

How can I cache YouTube videos with Squid Cache?

we're using the Squid cache in our company. Is there any way we can cache YouTube videos? cheers :)
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
7
votes
3 answers

Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

My proxy cache path is set to a very high size proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=staticfilecache:180m max_size=700m; and the size used is only sudo du -sh * 14M cache 4.0K proxy Proxy cache valid is set…
Quintin Par
  • 4,373
  • 11
  • 49
  • 72
7
votes
1 answer

Better performance when HDD write cache is disabled? (HGST Ultrastar 7K6000 and Media Cache behavior)

Attention, please. Long read. During initial performance tests of Hitachi Ultrastar 7K6000 drives that I'm planning to use in my Ceph setup I've noticed a strange thing: write performance is better when disk write cache is disabled. I use…
J''
  • 91
  • 1
  • 6
7
votes
1 answer

Is there a standard time duration before DNS caches are cleared?

Is there a standard time duration before DNS caches are cleared, so that if a distracted operator or stuck key turns a TTL of 86400 into 864000000 you don't end up with an authoritative resource record or even entire DNS zone whose changes won't be…
user981178
  • 445
  • 1
  • 3
  • 13
7
votes
2 answers

Does Nginx `if_modified_since` only work on static resources?

I can't seem to find enough documentation. I have an app that generates some dynamic responses, but could still benefit from the Last-Modified header -- so I send it. However, turning on if_modified_since (set to before, per…
anonymous coward
  • 615
  • 3
  • 8
  • 15
7
votes
1 answer

Nginx cache unmanaged growth

We have two Nginx servers with independent local caches for caching images. Periodically there is problem with unmanaged growth of cache's size. This size may be far larger than max_size in nginx.conf. As a result cache occupies all free disk…
7
votes
1 answer

Nginx not processing proxy_hide_header and proxy_ignore_header directives

I have trouble trying to make Nginx ignore and hide some headers from a proxied server. I want Nginx to hide and ignore the "Cache-Control" and "Server" headers but it didn't work, I don't know why. My conf is as follows : location / { …
Dakser
  • 165
  • 2
  • 2
  • 7
7
votes
1 answer

IIS Output Cache vs ASP.NET Output Cache

Quote from iis.net: The ASP.NET page output cache is separate from the IIS 7 output cache. In applications that use the Integrated ASP.NET mode, the ASP.NET page output cache can be used programmatically for any content-type, much like the IIS 7…
BornToCode
  • 252
  • 1
  • 2
  • 7
7
votes
3 answers

Configuring Varnish to rewrite Expires/Cache-Control headers for client-side caching

How do I configure Varnish so that all responses to requests matching say "*.css" gets cached in the client's browser for 30 days? What I'm trying to achieve is making Varnish set the correct "Expires:" and/or "Cache-Control" settings so that all…
knorv
  • 1,799
  • 6
  • 19
  • 29
7
votes
5 answers

Free / Cached / Available memory on Linux

I have read that linux uses free memory for caching, to make system faster. However, both Nagios and Paessler PRTG monitoring system show me that my memory usage is critical. I could change Nagios mem_usage script to sum free and cached memory, but…
pkoraca
  • 81
  • 1
  • 5
7
votes
1 answer

Windows Server 2003/Terminal Services - DLL Caching?

Does Windows Server 2003 cache specific DLLs on a per-user basis when in a terminal server environment? Back-Story: We recently had to update some DLLs for our application, and a couple clients are still experiencing the issue that the update was to…
7
votes
1 answer

Backup process flushes disk cache

I've got a backup process which reads quite a lot of data from disk, and therefore uses up all memory for disk cache, swapping off apps and other cached data in the process. There is no benefit to keep backuped data in disk cache after the backup is…
liori
  • 767
  • 3
  • 15
7
votes
2 answers

Apache's htcacheclean doesn't scale: How to tame a huge Apache disk_cache?

We have an Apache setup with a huge disk_cache (>500.000 entries, >50 GB disk space used). The cache grows by 16 GB every day. My problem is that the cache seems to be growing nearly as fast as it's possible to remove files and directories from the…
flight
  • 394
  • 4
  • 14
7
votes
2 answers

Apache cache serving partial content 206 responses to requests for the full content

We're running Plone 3.3.6 behind Apache 2.2.19 with mod_cache. We've recently noticed that Apache is caching the 206 response to a range request and then serving that partial response when a request for the full resource is made. What seems to…
scarba05
  • 333
  • 6
  • 15