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

learn more… | top users | synonyms (1)

1
vote
1answer
2k views

VCL - configuration for Magento and Varnish 3.0.2

I would like to kindly ask if there's someone who can help me configure Varnish for Magento to reach far more hits. My current ratio from varnishstat is: cache_hit=271 cache_miss=926 I'm kindly ...
0
votes
2answers
27 views

Handling caching with NGINX when cookies are being set by the server

I've had very good performance results using NGINX microcaching. However, I'm still not sure how to best handle server responses that have the Set-Cookie header. Can responses from the origin ...
6
votes
6answers
8k views

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 ...
0
votes
1answer
2k views

Nginx ignore query string for caching certain files

I know my setup is a bit crazy, but whatever.... I set up Nginx on Openshift to cache map tiles (for a map viewer, you can guess the purpose, :-) ) that are served from my home network, which has ...
-1
votes
1answer
30 views

The cpu L1/L2/L3 cache see in kvm guest is really matter?

[root@centos7 opt]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) [root@centos7 opt]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: ...
3
votes
2answers
3k views

CloudFront with Custom Origin and ELB

We are using CloudFront for our static assets but also wanted to allow for Gzip. We set up a new distribution with a custom origin pointing back to our application servers which are behind a elastic ...
0
votes
0answers
29 views

NGINX rewrite dynamic url

I configure NGINX proxy cache for Atlassian Confluence And i faced a problem of caching the edited pages Some time after editing the pages do not show the changes(cache TTL) I decided to force the ...
0
votes
3answers
3k views

Varnish doesn't seems to be doing anything

I would highly appreciate an input on whats going wrong here: Running Magento on Ubuntu 14.04 x64 + Nginx + Mysql + Php5-FPM Please double check my steps so maybe you could help me point what's ...
4
votes
1answer
4k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"...
0
votes
1answer
34 views

nginx Rewrite for CImage Cache

I'm setting up a script (http://dbwebb.se/opensource/cimage) to do some image processing and I'd like to cache the resulting image output. I have that part working fine. The problem I'm running into ...
0
votes
1answer
1k views

How to detect if this is an ISP/Server cache?

Before we start: I'm a noob. I'm trying to access YQL to get some information. Grabbing it using PHP's file_get_contents is simple enough, but it seems like either the client's ISP or the server is ...
0
votes
0answers
10 views

Magento Varnish cache warming with https (i.e. ssl)

I'm running Magento 1.9 on Ubuntu 14.04.4 x64, with a NGINX -> Varnish -> Apache setup and am using SSL everywhere. Everything works fine except when I try to warm the cache. I'm using the ...
1
vote
0answers
17 views

On multiple request to Squid, send a single request to a backend and queue other requests on miss

I would like to protect a backend server by having Squid send a single request to a the server when there is a cache miss for a resource. During the fetching, other requests should be put on hold ...
0
votes
0answers
60 views

nginx proxy cache mp4 streaming

Sorry for my question, the schema like this: there are upstream which is a IIS server where locates video files. my nginx is an proxy caching server, I need to cache mp4 file when client starts ...
1
vote
1answer
59 views

How do I reduce server load for a dormant WordPress site using W3 Total Cache?

My current host who did all performance optimization for me has jacked up their price to $1,000/month, so I was forced to move to a new host. The new host charges only $150/month. They give you W3 ...
1
vote
0answers
14 views

BIND cache dump file format parsing

I'm trying to analyze the contents of BIND's cache by looking into dump files, the ones generated by rndc dumpdb -cachedb. ; ; Start view _default ; ; ; Cache dump of view '_default' (cache _default) ...
4
votes
1answer
1k views

Nginx, memcached and cakephp: memcached module always misses cache

I've got a simple nginx configuration; server{ servername localhost; root /var/www/webroot; location / { set_md5 $memcached_key $uri; index index.php index.html; try_files $uri $...
0
votes
2answers
1k views

Nginx configuration for caching static files

I have some problem on configuring Nginx to correctly serve an AngularJS application. The server is configured as follow: www.example.com we have the landing page of the application www.example.com/...
0
votes
0answers
31 views

Nginx reverse proxy with two caches and one origin (OPENWRT)

I have two raspberry pi and one origin server. Both rasp can communicate between them in an ad-hoc network. Both rasp have also another radio for clients/consumers join in AP mode. I got this nginx....
1
vote
1answer
35 views

Inconsistent cache and expires headers (pragma:nocache)

I was trying to get my Apache Server (v2.4.7) to respond to an If-Modified-Since header sent by browsers and spiders like Google. I found this on a recommendation on Google Webmaster. I never knew ...
0
votes
0answers
19 views

Chrome not accepting HTTP/2 Pushed Content

I've been toying with HTTP/2 Server Push using Apache 2.4.20 on Ubuntu 14.04. For some basic examples, like pushing an image to a test webpage with only raw html and 2 img tags, it works great, the ...
2
votes
1answer
35 views

possible to see remaining DNS negative cache for domain?

For normal DNS lookups, one can use Dig to get an answer including the remaining TTL for a DNS record. If that answer is from a cache, the TTL will "count down" until the next authoritative query, and ...
-1
votes
1answer
70 views

What's the best way to cache a website on nginx server with SSL?

I have a wordpress blog which runs using nginx (SSL) + PHP-FPM + MySQL. I wondered what was the best way to cache this kind of site. I heard that Pound and Varnish do that well, but I haven't found ...
0
votes
1answer
2k views

Update Cache-Control max-age when srcache returns response from cache

I have configured Nginx to use srcache (along with the redis and redis2 modules). Server-side caching works great. My application responds with the appropriate Expires and Cache-Control headers, and ...
0
votes
0answers
127 views

Magento2 Varnish + Nginx (SSL not caching)

I move the question on serverfault instead of Magento (https://magento.stackexchange.com/questions/117075/m2-varnish-nginx-ssl-not-caching) since I consider this topic more on server side ...
2
votes
2answers
1k views

How to Create Yum Cache Server for client machines in LAN

Like in Ubuntu we have the option of creating "Ubuntu update cache server" which downloads and update packages directly from internet and serves other client ubuntu machines for installing/updating ...
0
votes
1answer
1k views

Mod_cache is not logging or caching

Apache 2.2 on RedHat 6.3. I have a virtual host that is setup like so: <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin some@email.com DocumentRoot /home/xxxxx/Sites/xxxxxxx.com/htdocs ServerName ...
1
vote
1answer
23 views

Varnish Purge - Hard Refresh on Browser

We're using varnish to proxy/cache content on 2 web servers running drupal. With that said, everything seems to be up and in order, pages are being cached, drupal is able to make the purge request and ...
1
vote
1answer
2k views

Varnish stops listening on port 80 after few hours

I have configured varnish to listen on port 80 and nginx to listen on 8080. After around 24 hours of uptime, my site has been down for 22 hours. I checked in and found varnish isn't listening on port ...
0
votes
0answers
22 views

CloudFront Object Caching: “Use Origin Cache Headers” vs “Customize”

When creating a CloudFront Distribution, I can choose "Object Caching" - either "Use Origin Cache Headers" or "Customize". "Customize" allows me to set Minimum, Maximum and Default TTL values. Does "...
2
votes
1answer
38 views

Troubleshooting nginx caching for static assets

I have a Django website where users post images for the whole community to see (kind of like 9gag). I use Azure storage to save and serve the images. The webserver is an nginx reverse proxy + ...
1
vote
1answer
31 views

How is Cache-Control: max-age affected by intermediate caching?

I am currently serving an HTML page to users with a Cache-Control: max-age=600 header. I believe this allows the users' browsers to cache the page for a maximum of 10 minutes. I am considering adding ...
0
votes
0answers
67 views

c3p0 commit is always called even if queries are not executed(data is coming from Ehcache)

I have a web service which makes readonly call(bunch of select queries) to get data from DB. But it makes call to the database for the first time only, after that, all entities involved are cached in ...
1
vote
1answer
47 views

Squid3 doesnt serve youtube content from cache [closed]

I am trying to cache a youtube video (served from .googlevideo.com/) on squid proxy and want to ensure that when I access youtube video/audio from the same url again, it will be served from squid ...
0
votes
0answers
18 views

How to manage high traffic on news portal(cache)? [duplicate]

I have some questions regarding to my news portal, where I have some issues with high traffic. The issues is: I have daily about 50 k UU, and sometimes I have shots about 20 k UU in one time from ...
0
votes
1answer
75 views

nginx fastcgi caching - multiple different expire times

I need to set up NGINX so that different locations would have different expire times for caching and some would have caching disabled. This is my current setup: fastcgi_cache_path /etc/nginx/cache ...
17
votes
5answers
8k views

Is there a way to get Cache Hit/Miss ratios for block devices in Linux?

Is it possible to see in Linux how many read and write requests from user space end up causing cache hits and misses for block devices?
7
votes
1answer
305 views

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 ...
0
votes
1answer
80 views

Varnish 4.1: Is this the proper VCL code to use default localhost unless it's unhealthy, then fallback to director?

I just wanted to make sure this is the most ideal way to accomplish this. Here's the setup: Basically we have 3 servers "balanced" by DNS Round Robin. Varnish is configured on each server with a ...
1
vote
1answer
24 views

How to Proxies handle ETags?

I use ETags to improve performance. I decided to use an Etag that is valid on Server, Client and Proxy. But how is this handled if the proxy has saved the ETag? Does the Proxy still ask the website ...
3
votes
3answers
6k views

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.
43
votes
17answers
35k views

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 ...
2
votes
0answers
27 views

Protect cached content in apache

I'm facing an issue where I have some cached contents in a disk and I want to protect it with a token url. I can protect my files via htaccess, once they are not cached (direct access), but now I ...
0
votes
2answers
33 views

varnish cache working good but creates new cache for every visitor

I have installed varnish cache in my server Caching and its TTL working good But the system create new cache object and age for every visitor How can I config the system to create one cache object ...
3
votes
1answer
163 views

Cache-Control not working in AWS S3 object Metadata

Follow-up to my original question: No Cache-Control Header for files from AWS CloudFront with S3 Origin Im serving up static files using AWS CloudFront with AWS S3 as the origin. I tried to set the ...
1
vote
1answer
124 views

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 ...
0
votes
1answer
25 views

DRBD - Why read-only on secondary resource would cause cache coherency issue

According to the DRBD9 documentation (https://www.drbd.org/en/doc/users-guide-90/s-resource-roles), reading the device would cause cache coherency issue but i'm not sure about why. (I know i can't ...
-1
votes
1answer
114 views

Samba file sharing cache

Does Samba have any option for file caching over WAN (connected via VPN)? I've looked into WAN optimization, but I want something simple to setup. Setup: Linux File Server(Main Office)====WAN====...
1
vote
0answers
85 views

nginx x-cache status flipping between hit and expired on WordPress site (test php file OK)

I have an nginx cache setup for a WordPress site, and it is flipping between nginx header status x-cache: HIT and x-cache: EXPIRED seemingly randomly: C:\Users\curl-7.48>curl -I http://example.com ...
0
votes
1answer
44 views

NFS vs AFS cache validation

NFS clients revalidate cache blocks on access by evaluating T-Tc < t. If this fails it sends a getattr call to the NFS server asking for the last Tmodified stamp of the relevant file. AFS ...