A location or process for storing of transitory or temporary data in order to improve application or system performance.
Questions tagged [cache]
1588 questions
6
votes
1 answer
Slab usage extremely high?
On a Centos 7 server with 32GB RAM memory I am running a few programs namely MySQL, Apache2, PHP. Recently I wanted to verify the amount of ram left as I was planning on installing a few more programs, to my suprise the amount of memory was quiet…

user254948
- 469
- 3
- 10
6
votes
1 answer
why adding Expire-Header to static files in nginX does not work
I have a single server block where my site resides in. Inside of that block I've added a location block as below:
server {
...
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 30d;
add_header Pragma public;
add_header…

Alireza
- 583
- 4
- 9
- 27
6
votes
2 answers
What is the difference between proxy_cache_ and fastcgi_cache?
I was searching for a simple Nginx microcache solution and I end up seeing two ways to have microcache. Some tutorials use proxy_cache, while others fastcgi_cache. What are the differences, pros and cons between these two solutions?
Thanks!

Daniel
- 193
- 1
- 6
6
votes
1 answer
Is enabling MySQL query_cache_size Innodb Lock Safe?
The query_cache_size looks like the kind of setting that one would usually want enabled which puzzled me since it defaults to 0. Then I read the following about the query_cache_wlock_invalidate setting from the MySQL docs
Normally, when one client…

Programster
- 495
- 1
- 13
- 22
6
votes
1 answer
Squid proxy not caching anything
squid.conf:
http_access allow all
# Squid normally listens to port 3128
http_port 3128 accel defaultsite=localhost no-vhost
cache_peer localhost parent 80 0 no-query originserver name=myAccel
cache_peer_access myAccel allow all
# Uncomment and…

Dan Fabulich
- 497
- 1
- 6
- 19
6
votes
7 answers
Slow Memcached: Average 10ms memcached `get`
We're using Newrelic to measure our Python/Django application performance. Newrelic is reporting that across our system "Memcached" is taking an average of 12ms to respond to commands.
Drilling down into the top dozen or so web views (by # of…

Chris W.
- 103
- 1
- 1
- 10
6
votes
6 answers
how to delete single nginx cache file?
when access http://example.com/ its blank but working good with http://example.com/index.php
i need to delete nginx cache file for http://example.com/ how to do it?
Here my nginx cache conf.
fastcgi_cache_path /backup/cache levels=1:2…

imastar
- 71
- 1
- 3
- 8
6
votes
3 answers
What is the memory module on a RAID card needed for?
As above, what is the reason for needing a memory module on a RAID card?
The card I am looking at (HP P410) comes with either 256MB or 512MB but unsure which to get and why.

Tom
- 88
- 1
- 1
- 5
6
votes
1 answer
Nginx sending 2 Cache-Control headers
Iam serving my static content with ngnix.
location /static {
alias /opt/static/blog/;
access_log off;
etags on;
etag_hash on;
etag_hash_method md5;
expires 1d;
add_header Pragma "public";
…

optixx
- 216
- 2
- 7
6
votes
2 answers
Non-volatile cache RAID controllers: what kind of protection is there against NVCACHE failure?
The battery back-up (BBU) model:
admin enables write-back cache with BBU
writes are cached to the RAID controller's RAM (major performance benefit)
the battery saves uncommitted and cached data in the event of a power loss (reliability)
If I lose…

astrostl
- 690
- 4
- 11
6
votes
2 answers
MySQL caching (innodb_buffer_pool_size vs query_cache_*)
What's the relation between:
innodb_buffer_pool_size and query_cache_*
Both are use for caching queries but what's the difference? Can I use both?
Thank you

HTF
- 3,148
- 14
- 52
- 82
6
votes
2 answers
Clearing Java certificates cache (force reload certificates)
A simple question here.
One application gave me this exception when trying to access a website with a expired certificate: java.security.cert.CertificateExpiredException
So, I renewed the certificated from the website machine and restarted it. When…

Alberto Fernández
- 171
- 1
- 1
- 5
6
votes
2 answers
How to Cache dynamic content using Nginx when sessions are involved?
This link explains how to create static files from dynamic content using Nginx.
My question is this: can I achieve the same if login sessions are involved. ie. when I want to serve content to only registered users and not otherwise. So how to…

Thale
- 193
- 1
- 9
6
votes
2 answers
Can nginx be made to cache upstream responses containing an X-Accel-Redirect header?
I am using nginx as a reverse proxy in front of application server. The application responds with an X-Accel-Redirect header telling nginx which static file to serve. What I'd like to be able to do is have nginx cache some of these upstream…

D. Evans
- 161
- 1
- 3
6
votes
2 answers
Caching db results - need a nudge on how to start
I have a project coming up where one of the requirements will be to cache what's essentially read-only data in order to lessen the strain on the db. I'm just a bit confused on how caching works with a db.
How does caching work? I've seen something…

Major Productions
- 185
- 6
- 17