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
1 answer

Linux ZFS does not buffer writes to write buffer (SLOG/ZIL)?

When experiencing write I/O, the log column in zpool iostat -v does not show any ZIL activity, ever. This results in higher than expected wait times when writing data to disk (sometimes over 80ms during contention). capacity …
user1955162
  • 296
  • 3
  • 16
8
votes
2 answers

How to set Nginx ignore Pragma: no-cache

I'm setting up a Nginx server for a cache proxy server. I've noticed that cache not working when this header is in request: Pragma: no-cache Without this header, cache working ok. Can I make Nginx ignore this header field from client, and caching…
user3368344
  • 81
  • 1
  • 1
  • 2
8
votes
4 answers

How to flush DNS resolver cache on Linux (and FreeBSD)

I am admin for several Linux and FreeBSD servers and here is a problem I have: The servers run a tool that does a lot of DNS queries every minute for the entire network. When it does a query, the result gets cached system-wide. If a DNS entry…
Boda Cydo
  • 405
  • 2
  • 7
  • 14
8
votes
2 answers

How to invalidate nginx reverse proxy cache in front of other nginx servers?

I'm running a Proxmox server on a single IP address, that will dispatch HTTP requests to containers depending on the requested host. I am using nginx on the Proxmox side to listen to HTTP requests and I am using the proxy_pass directive in my…
Olivier Lance
  • 183
  • 1
  • 1
  • 6
8
votes
3 answers

How to make an existing caching Nginx proxy use another proxy to bypass a firewall?

My question is about using Nginx as a proxy behind another proxy. (Somewhat confusing.) I want to set up Nginx so it acts as a caching proxy server to an npm mirror. Here is the link: http://eng.yammer.com/a-private-npm-cache/ On my local machine,…
Philipp Claßen
  • 551
  • 2
  • 8
  • 21
8
votes
3 answers

nginx - serving stale cache response while updating

In nginx I am using the proxy_cache_use_stale updating directive (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_use_stale) so that concurrent request to an invalidated cached content only send 1 request to the upstream (the…
Jerome WAGNER
  • 193
  • 1
  • 1
  • 8
8
votes
3 answers

Let varnish send old data from cache while it's fetching a new one?

I'm caching dynamically generated pages (PHP-FPM, NGINX) and have varnish in front of them, this works very well. However, once the cache timeout is reached, I see this: new client requests page varnish recognizes the cache timeout client…
mark
  • 1,516
  • 5
  • 21
  • 33
8
votes
2 answers

Setting up a reverse proxy to cache images

I wrote a quick Python server to serve resampled images. For example, a URL might look something like http://images.domain.com/resample/100x100/9f362e1994264321.jpg. Being that resampling images is expensive, a caching layer is necessary. It…
Theron Luhn
  • 325
  • 2
  • 3
  • 11
8
votes
2 answers

Force request to miss cache but still store the response

I have a slow web app that I've placed Varnish in front of. All of the pages are static (they don't vary for a different user), but they need to be updated every 5 minutes so they contain recent data. I have a simple script (wget --mirror) that…
Tom Marthenal
  • 2,116
  • 7
  • 25
  • 37
8
votes
2 answers

Squid not caching

I am trying to configure Squid as a caching server. I have a LAN where The webserver (apache) is at 192.168.122.11 squid is at 192.168.122.21 and my client is at 192.168.122.22. The problem is, when I look at Squid's access log, all I see are…
ACC
  • 249
  • 1
  • 4
  • 12
8
votes
2 answers

Linux disable disk cache for a single command

Our server is performing decently, but when backups or other scan processes run it will tank the entire server. Something like clamd will run and scan many files. While we expect slow performance, it's killing our cache and the end result is we…
Kristopher Ives
  • 384
  • 1
  • 3
  • 14
8
votes
3 answers

How do I alter the Last-Modified header on nginx?

My server returns the following headers: Cache-Control:no-cache Connection:keep-alive Date:Thu, 07 Jul 2011 10:41:57 GMT Expires:Thu, 01 Jan 1970 00:00:01 GMT Last-Modified:Thu, 07 Jul 2011 08:06:32 GMT Server:nginx/0.8.46` I want the content I'm…
evilpenguin
  • 781
  • 3
  • 9
  • 16
8
votes
5 answers

Does ZFS cache Compressed or Uncompressed data in a ZFS file-system with compression turned on?

ZFS supports file-system compression and it also caches frequently or recently accessed data. If a system has lots of CPU but the underlying data storage system is slow. It is possible that ZFS would perform better with compression turned on. This…
700 Software
  • 2,233
  • 10
  • 49
  • 77
8
votes
3 answers

Caching youtube on LAN

Possible Duplicate: How can I cache YouTube videos with Squid Cache? I am an Administrator for a net cafe. We have limited monthly traffic allowance and in past our investigations showed that 100 out of 500 videos are repeated. I am looking for…
Ahsan
  • 181
  • 1
  • 3
8
votes
2 answers

Can you set a minimum linux disk buffer size?

I have a rather old Linux machine with 2GB of ram, no swap, and it's working very well, with the system using every unused piece of memory for caching with great effect. However, when I'm close to stressing out memory (e.g., >1950MB allocated), it…
No One