A location or process for storing of transitory or temporary data in order to improve application or system performance.
Questions tagged [cache]
1553 questions
101
votes
7 answers
How do I clear Chrome's SSL cache?
I have a HAProxy / stunnel server that handles SSL for our sites on AWS. During testing, I created a self-signed cert on this server and hit it from my desktop using Chrome to test that stunnel was working correctly.
Now I have installed the…
![](../../users/profiles/56922.webp)
Foovanadil
- 1,110
- 2
- 7
- 7
96
votes
5 answers
Disable caching when serving static files with Nginx (for development)
We are using Nginx to serve static files on a development platform. As it is a development platform, we'd like to disable caching so that each change is propagated to the server. The configuration of the VHost is quite simple:
server {
server_name…
![](../../users/profiles/81372.webp)
Olivier Chappe
- 961
- 1
- 7
- 4
92
votes
15 answers
Why drop caches in Linux?
In our servers we have a habit of dropping caches at midnight.
sync; echo 3 > /proc/sys/vm/drop_caches
When I run the code it seems to free up lots of RAM, but do I really need to do that. Isn't free RAM a waste?
![](../../users/profiles/220313.webp)
ivcode
- 1,062
- 1
- 9
- 13
88
votes
18 answers
Caching/preloading files on Linux into RAM
I have a rather old server that has 4GB of RAM and it is pretty much serving the same files all day, but it is doing so from the hard drive while 3GBs of RAM are "free".
Anyone who has ever tried running a ram-drive can witness that It's awesome in…
![](../../users/profiles/1876.webp)
Andrioid
- 2,600
- 2
- 19
- 21
43
votes
6 answers
Which PHP (opcode) cache one should use and why?
I keep hearing about some PHP (opcode) caches like - APC, XCache, Memcache, eAccelerator, etc.
But I couldn't ever figure out how to go about choosing one. Apart from performance benefit, which a caching system is supposed to deliver, which other…
![](../../users/profiles/17440.webp)
rahul286
- 1,647
- 4
- 20
- 25
42
votes
4 answers
How do I remove a specific bad plan from the SQL Server query cache?
We have one particular SQL Server 2008 query (not a stored proc, but the same SQL string -- executes every 5 minutes) that intermittently caches a very bad query plan.
This query normally runs in a few milliseconds, but with this bad query plan, it…
![](../../users/profiles/1.webp)
Jeff Atwood
- 12,994
- 20
- 74
- 92
34
votes
2 answers
No Cache-Control Header for files from AWS CloudFront with S3 Origin
We just migrated to Amazon AWS. We currently have an EC2 instance that's working well. It's running Nginx in front and Apache in the back-end. That's running well also. All sites are launched properly and includes the Cache-Control header for files…
![](../../users/profiles/334412.webp)
jarvis
- 1,956
- 4
- 17
- 31
29
votes
3 answers
What effect does https traffic have on web cache proxy servers?
I just took two university courses on computer security and internet programming. I was thinking about this the other day:
Web cache proxy servers cache popular content from servers on the web. This is useful, for example, if your company has a 1…
![](../../users/profiles/184943.webp)
ejsuncy
- 393
- 1
- 4
- 7
29
votes
7 answers
How do I force NGINX to load new static files?
I recently pushed a major update to a site and I'm having an issue where some people can't log in because their browser is loading old javascript files. Some of the things I have done include:
Cache busting all javascript files
Set sendfile off in…
![](../../users/profiles/95568.webp)
jwerre
- 748
- 3
- 11
- 26
28
votes
4 answers
How do I disable tomcat caching? I'm having weird static file problems
How do I prevent tomcat from caching? I have css and basic html files that I load and use via ajax, and unless I restart tomcat, the changes do not seem to reflect. Different machines, different browsers, and I don't receive the updated…
![](../../users/profiles/11669.webp)
Stefan Kendall
- 1,069
- 3
- 17
- 33
25
votes
2 answers
For L2ARC and ZIL: is it better to have one large SSD for both, or two smaller SSDs?
Main references
ZFS L2ARC (Brendan Gregg) (2008-07-22) and ZFS and the Hybrid Storage Concept (Anatol Studler's Blog) (2008-11-11) include the following diagram:
Question
Should I interpret the vertical white line – at the SSDs layer – as a…
![](../../users/profiles/91969.webp)
Graham Perrin
- 635
- 2
- 10
- 24
24
votes
2 answers
Linux SSD as HDD cache
I have a Linux server system installed on an SSD and an HDD for user data. As there is space left on the SSD, I want to use it as a read cache for the HDD.
Looking at the possibilities, I found:
dm-cache: Needs a lot of reads before caching shows…
![](../../users/profiles/256070.webp)
GxB
- 401
- 1
- 3
- 8
24
votes
2 answers
Varnish Cache - default TTL?
I have discovered that I can set the TTL in Varnish as follows in my VCL file:
sub vcl_fetch {
# 1 minute
set obj.ttl = 1m;
}
But what is the default setting (assuming the backend server is setting no cache-control header) ?
![](../../users/profiles/92319.webp)
Ade
- 689
- 3
- 10
- 21
23
votes
5 answers
Does CURL cache requests?
This is a pretty long question, so bear with me.
I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to download ~3 MB video files. Naturally I wanted to see…
![](../../users/profiles/293534.webp)
Akshaya Shanbhogue
- 332
- 1
- 2
- 6
22
votes
4 answers
How effective is LSI CacheCade SSD storage tiering?
LSI offers their CacheCade storage tiering technology, which allows SSD devices to be used as read and write caches to augment traditional RAID arrays.
Other vendors have adopted similar technologies; HP SmartArray controllers have their SmartCache.…
![](../../users/profiles/13325.webp)
ewwhite
- 194,921
- 91
- 434
- 799