A location or process for storing of transitory or temporary data in order to improve application or system performance.
Questions tagged [cache]
1588 questions
9
votes
1 answer
FastCGI cache "MISS" due to conflicting headers from PHP application?
I've setup FastCGI cache like this:
location ~ \.php(/.*)?$ {
fastcgi_cache RWI;
fastcgi_cache_valid 200 60m;
set $nocache 0;
if ($request_method = POST)
{
set $nocache 1;
}
if ($http_cookie ~…

Joran Den Houting
- 195
- 1
- 8
9
votes
4 answers
Cloudflare not caching static files as expected (cf-cache-status: MISS)
I'm wondering why Cloulflare would not cache a certain static js file.
Given the reuqest:
curl -I http://www.testlifeinuk.com/dist/lifeinuk.js
the headers returned like:
HTTP/1.1 200 OK
Date: Mon, 12 Jan 2015 10:59:21 GMT
Content-Type:…

Wudong
- 201
- 1
- 2
- 5
9
votes
2 answers
Nginx + php-fpm - Each php-fpm process 70-100% cpu when running
I have a situation in which the following is taking place:
We are on linode with 8-core, 8gb of ram , 2.6 ghz - using nginx + php-fpm - we are getting extremely high graphs of cpu usage (which we don't want to be such a bad VPS neighbor)...
We…

amurrell
- 591
- 1
- 7
- 13
9
votes
2 answers
How do I set a varnish response TTL dynamically?
my php script is sending a header X_Cache_ttl: 1h and in my varnish config file I have
sub vcl_fetch
{
if(beresp.http.X-Cache-ttl){
set beresp.ttl = beresp.http.X-Cache-ttl;
}
}
but the line with the set command is causing…

DiverseAndRemote.com
- 2,091
- 3
- 16
- 16
9
votes
1 answer
How does Varnish deal with running out of storage?
I am using Varnish 3.0.3 (the latest as of this writing) with more or less the default install, using the following for storage:
# # Cache file location
VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
#
# # Cache file size: in bytes,…

user174548
- 91
- 1
- 3
9
votes
3 answers
apache2 - SSLSessionCache running but not working
I run a debian squeeze standard Apache installation (2.2) and make use of SSLClientCertificates to authorize users. This works fine so far.
But we noticed a slow down of some parallel requests and tried to check if my SSLSessionCache is working.
So…

Janning
- 1,421
- 2
- 21
- 38
9
votes
2 answers
Debian/Ubuntu is it possible to reinitialize /var/lib/apt/lists and /var/apt/cache after deleting them?
Is it possible to restore the functionality of /var/lib/apt/lists and /var/apt/cache after deleting them or minmizing them in some wa
I am trying to shrink down an Ubuntu VM to the smallest size and decided to delete /var/lib/apt/lists and…

vfclists
- 1,632
- 5
- 22
- 37
9
votes
2 answers
High disk I/O when cache is used?
A few days ago I noticed a disk I/O wait and disk activity drop (which was great). Then I also notice that my cache was full(*) and fragmented. Then I flushed cache. After that, disk latency and disk activity jumped to the previous level (which was…

jcisio
- 588
- 1
- 9
- 22
9
votes
3 answers
tuning linux cache settings for inode caching
I am dealing with hundred million files in a filesystem (distributed among a lot of subdirectories), and I need to be able to list them very quickly, particularly in order to rsync them efficiently.
On a other hand, I don't really need to have the…

john.doe
- 115
- 1
- 1
- 3
9
votes
2 answers
How to setup Apache 2.2.3 to send "last modified" etc
and to tell browser to reload an object (and/or a page... everything on the site) only if is been modified since last visit time???
htaccess, httpd.conf... have you a ready directive right for my case? Thank You very much

smepie
- 193
- 1
- 1
- 3
9
votes
5 answers
Is there a way to turn off client browser caching for specific websites?
This is a browser agnostic question but we're testing with IE9.
One of the web apps our users visit is being randomly cached and changes aren't showing up when they should. No other site has this issue and we've worked with the vendor who claims it…

GollyJer
- 685
- 3
- 11
- 22
9
votes
1 answer
What is the difference between a cache, a primed cache and an empty cache?
Can someone explain the following concepts to me as the relate to measuring the data transfer of data from my web site.
Whats the difference between a cache, a primed cache and an empty cache?
Can you give a a definition for each?

Enrique
- 113
- 1
- 6
9
votes
5 answers
Squid or Other HTTP Caches with SSD Cache Store?
I'm contemplating setting up a squid (or possibly varnish) cache on a system with SSD drives.
The obvious benefit is that these systems have great READ speeds and I expect my hit ratios to be fairly high.
Let's assume I can put 7 SSDs in to a RAID…

Joel K
- 5,853
- 2
- 30
- 34
8
votes
2 answers
Apache: Send pre-packed gzip'ed files
I want Apache to send static files gzip'ed over the wire, but also want Apache to not always gzip them over and over again. So I thought if it wouldn't be possible to deliver an .gz file if it exists. This set-up:
File structure:
static/
|
|---…

Boldewyn
- 239
- 4
- 13
8
votes
2 answers
start nginx despite missing upstream
I like to run nginx as a local proxy server, serving stale cache files if the upstream server is unavailable.
This works well, except the local machine is restarted, while the internet connection faults. In this case, nginx won't start up at all,…

dronus
- 1,178
- 1
- 13
- 15