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
13 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
1answer
1k 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
0answers
24 views

how to fill the cpu cache forcefully

Is there a simple (bash based) way to forcefully fill up the cpu cache on linux with some dummy contents? I am comparing the timings of two programs and would need to make sure the cache content is ...
0
votes
0answers
16 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
34 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
23 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
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 ...
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 ...
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 ...
0
votes
0answers
62 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
30 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 ...
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 ...
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
1answer
1k views

Squid forward cache to HAProxy load balancer

I have a farm of Squid proxies set up behind an HAProxy load balancer. I would like to cache data that is returned from the Squid proxies, the architecture I am considering would look something like ...
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
50 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
303 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 ...
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
1answer
67 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 ...
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
17 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.
41
votes
17answers
34k 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
89 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
56 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
24 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
68 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 ...
1
vote
0answers
74 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
36 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 ...
2
votes
1answer
762 views

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

Varnish configuration advise

I am having a few issues with my VPS. Something happened on it which my hosts are unsure of and so I am having to go through an ordeal to try and reconfigure a few things. One of those things are ...
1
vote
0answers
84 views

Squid takes a long time to get a response for HTTP requests, never hit neighbor cache

I am trying to install Squid in a sibling model by following these instructions. But when the client executes HTTP request it takes a long time to get response from the server. System model: ...
0
votes
0answers
41 views

Cant cache REST api by nginx

I use django through uwsgi for my API. I try this config upstream django_dev { ...
11
votes
4answers
49k views

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

NGINX - Cannot set Cache-control for redirected .js files (with alias + rewrite)

I have successfully setup an nginx server which uses both alias + rewrite as in the below configuration. Everything works except that javascript files are not enforced browser caching. Server url: ...
1
vote
2answers
436 views

djbdns/dbndns dnscache query ipv6-only nameservers?

I have (attempted to) set up dnscache on Ubuntu 14.04 (Trusty) to do dual stack for servicing requests AND querying authoritative name servers. To be clear, I'm using the dbndns package, which has ...
1
vote
0answers
22 views

Hybrid Cloud Backup solution [closed]

I am looking like this solution. How can I do this? My side there will a central server This server as a local backup server. It will act as local file cache server. This server will encrypt all ...
1
vote
1answer
662 views

Nginx Try_Files to create local content cache?

I'm trying to either serve images locally, or from a share (locally refreshed overnight). My nginx site is served across 2 or more servers, to keep all the content in sync across each server, I'm ...
0
votes
0answers
25 views

I want to enable e-tag on a caching nginx server

I have a reverse proxy caching nginx server which I want to serve files with an e-tag. I've read that one cannot, since there's no way for nginx to know if the back-end updated their files. However, ...
1
vote
2answers
31 views

Nginx serving static PHP files

Whilst trying to implement some caching for a slow Wordpress site - I've enabled cachig at NGINX level. However, it seems, that it's holding on to a rendered file, and doesn't want to let go. It's ...
0
votes
0answers
39 views

nginx 1.8.1 is not caching with Vary Accept header

I have a strange nginx caching behavior. There are 2 responses. The first one had stopped caching when I updated server from 1.6 to 1.8.1, another one is caching like before. The first one (broken) ...
0
votes
0answers
52 views

Squid refuses to cache everything

Squid seems to randomly decide what to cache. http://1.vgc.no/drfront/images/2016/03/14/c=508,28,442,442;w=316;h=316;268506.jpg <- Is a perfect example of a file that doesn't get cached. It's on ...
0
votes
0answers
44 views

DirectAdmin ssl cache lock

strange log came out from web error log: (43)Identifier removed: AH02026: Failed to acquire SSL session cache lock (43)Identifier removed: AH02026: Failed to acquire SSL session cache lock ...
1
vote
0answers
97 views

Which are possible hierarchies for bcache, mdadm RAID and LVM?

Assuming I want to use bcache for caching, mdadm for RAID (1) and LVM for partitioning (and that I don't care that there might be performance drawbacks due to many levels of I/O and device management ...
0
votes
1answer
16 views

Storage Spaces cache in RAID 1

I have 2 x Intel S3700 200GB. I want to employ ReFS and Storage Spaces, Mirroring to the drive, behaving like RAID 1. That's all i need, not more. Now i plan to use this as database. Normally in RAID ...