Questions tagged [cache]
A location or process for storing of transitory or temporary data in order to improve application or system performance.
1,597
questions
2
votes
1
answer
85
views
Predictive HTTP Caching
A bit of background
I have ~150 scripts that directly or indirectly pull data from an IBM Cognos instance that I have no control over. I do not have access to the Cognos API, so the eventual source of ...
1
vote
1
answer
698
views
Nginx not caching pages to disk
I'm setting up Nginx as a web server processing PHP via php-fpm on Ubuntu 18.04. This is working great and is lightning fast. I'm attempting to configure it to cache pages to see if performance gets ...
1
vote
1
answer
2k
views
Nginx fastcgi cache in different location block
I am trying to cache different location with different cache keyzone but it is not working. Cache is only working for the root "/" location.
If I turn off the cache for location "/" then still it ...
0
votes
1
answer
134
views
Run similar disk intensive tasks parallel or serial on regular Linux?
Scenario
I'm on a regular Ubuntu 18.04 LTS with ext4 Filesystems.
I'm using restic to backup my machines. Restic is a backup tool that support different backends (local, sftp, aws, gcs, ..) but only ...
1
vote
0
answers
240
views
How to check the cache mode of a qcow2 image?
Say I converted an image to writethrough cache mode with this command:
qemu-img convert -t writethrough -O qcow2 in-image.qcow2 out-image.qcow2
How can I check/verify the cache mode of the image?
1
vote
2
answers
91
views
I deleted a page on website but it's still showing up 24 hours later [closed]
Yesterday as I was uploading changes to a website that I'm working on the server stopped showing the changed files. After making several changes to the file and repeatedly uploading it to no avail, I ...
1
vote
0
answers
116
views
Nginx reverse proxy ignores cache headers
I'm using nginx as a load balancer. here is the simplified version of my nginx config file.
upstream myUpstream {
server server1.com;
server server2.com;
}
server{
location / {
...
3
votes
1
answer
2k
views
NGINX max_size and keys_zone, could not allocate node in cache keys zone
We have a very dynamic and high-traffic application and are using NGINX caching with dynamic URLS. We want to cache these URLs for repeated requests.
We have run into an issue a couple times while ...
0
votes
1
answer
63
views
configure nsscache with samba4 active directory
I have a problem caching the users from samba4 AD with nsscache, since there is no uid, rather samAccountName or cn in AD. When I use the uid-like attribute:
# Default uid-like attribute
ldap_uidattr ...
0
votes
1
answer
310
views
How to clear a cache of Web site in server
I developed a website. It has been hosted in google cloud platform.I was required to change the banner of picture of the home page of website. I changed in server but It showed previous banner picture ...
0
votes
0
answers
102
views
LSI RAID6 with 3 disks loss recovery
My hardware RAID6 on an LSI controller experienced a disaster - 3 disks were physically removed from it - they are not faulty. After reboot the 3 drives were showing as "Unconfigured BAD". I used ...
3
votes
0
answers
265
views
Don't cache small responses with nginx
I am using nginx for reverse proxy with caching. And I have a backend that sometimes returns 200 HTTP code for failed requests, with just an empty set for a body. I'd like to configure nginx in a way ...
0
votes
2
answers
6k
views
nginx cache cookies issue
I've configure nginx|php-fpm with nginx cache.
The problem i'm having is with the cookies and cache, i configure to bypass cookie name and some request_uri and working fine bypass it cool here.
...
0
votes
1
answer
222
views
Has anyone ever considered using a second partition on a disk in a ZFS mirror when that disk is known to be faster (SATA+NVMe)?
I was reading this question where I felt obligated to comment and poison the sanity of system administrators everywhere. Then I had an interesting idea.
Lets say that you have a laptop with a one ...
0
votes
1
answer
1k
views
KVM + QEMU + Memory = Nightmare
I have this memory situation in my debian9.9
root@ghds-prod-3:~# free -m
total used free shared buff/cache available
Mem: 16035 7821 527 ...
3
votes
1
answer
893
views
How to mminimize the network traffic for pulling docker images for many hosts
I am looking for a mechanism to minimize docker pull traffic for a bunch of hosts which are provisioning the same docker image. I tried to use squid-cache but apparently it is no good as it has no ...
2
votes
1
answer
1k
views
Varnish cache with Nginx SSL termination
How can I use varnish cache with nginx SSL termination for my SSL-Only (Https only) website? I use ubuntu 18.04 and I am currently running a wordpress site on my server.
1
vote
1
answer
2k
views
http response shows Expires in 1981 when using mod_cache
I'm setting up Apache caching on CentOS using mod_cache and mod_cache_disk with the configuration at the bottom of this post but the page is not cached. I included CacheDetailHeader on to get some ...
0
votes
1
answer
183
views
nginx getting miss before expire time
I have an nginx server proxying and caching requests to django backend. The headers when i make a curl to django gunicorn request are the following:
HTTP/1.1 200 OK
Server: gunicorn/19.9.0
Date: Mon, ...
1
vote
1
answer
213
views
Set expires for all static data, except home url
I am creating a spa website, now for the static data (javascript) I wish to set up the headers in such a way it only expires after a certain amount of time.
However to allow for easy updating I wish ...
0
votes
1
answer
35
views
Besides files, what informations about a website are also being cahed into a browser?
My website was pointing to a shared hosting server in Godaddy, it is managed by cPanel. Recently I bought a Godaddy managed VPS. After I had WHM/cPanel installed on it I moved my website to this VPS. ...
0
votes
1
answer
701
views
Squid negative_ttl not working
Setup
$ squid -v
Squid Cache: Version 3.5.20
Service Name: squid
configure options: '--build=x86_64-koji-linux-gnu' '--host=x86_64-koji-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/...
1
vote
0
answers
320
views
Proxy (transparent) that retries on 503 errors
In a devops setting, a docker container needs to have its https traffic filtered through a retrying proxy/cache, as the requests sometimes fail due to 503 errors. It seems like squid can do this, but ...
0
votes
0
answers
663
views
openldap memberOf not showing user in group
When I do an ldapsearch for a newly created user and ask for its goup membership the query does not return the expected answer even though this user exists in a group.
For example :
# ldapsearch -x ...
0
votes
1
answer
711
views
Apache2 reverse proxy with response caching
I'm using Apache as a reverse proxy for an application running on a local port. I want to cache responses from this application in memory. So requesting the same URL frequently should give me cached ...
1
vote
2
answers
6k
views
Connection Error on Console screen of Redis Cache Azure
On the console screen of redis cache of azure. I write any syntax to retrieve data, sometimes, i get the following error:
Connection Failure: If this issue persists, ensure your computer's firewall ...
26
votes
2
answers
20k
views
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-...
1
vote
1
answer
149
views
Is it possible to return a cached web response and then update it in the background?
Say I have a cached response (web cache, full html) that I want to update every 30m. The thing is that after this 30mins, I want to serve the first next request the "old" cached version, and then in ...
2
votes
2
answers
5k
views
Why can't I release memory cache by /proc/sys/vm/drop_caches
Today I found my server only have few free memory. and I executed free -h, it shows there are 60G memory used by cache. So I execute command to release cache, the result like this:
$ free -h; sudo ...
0
votes
0
answers
87
views
Browser caches the rewrited url. How to stop it from being cached?
I'm using nginx to rewrite a url
location /ReeferUI/Reports/ {
rewrite ^ /ReeferUI/index.html break;
proxy_pass http://localhost:8083/ReeferUI;
proxy_set_header Host $host;
...
1
vote
1
answer
5k
views
Multipart ranges in Nginx reverse proxy
I am trying to setup Nginx as a reverse proxy. The upstream server is serving some media files.
Because of the large amount of requests for these files and also since these files are not going to ...
1
vote
2
answers
3k
views
fsc option is ignored when trying to use cachefilesd on ubuntu 18.04
I'm trying to set up cachefilesd on an nfs share with one of my servers. It's not working.
The service is running, my drives are mounted, but it seems as if the "fsc" option is completely ignored.
...
3
votes
1
answer
495
views
Does issuing a sync call flush an SSD's write cache?
Suppose I create a number of directories on SSD, then issue a "sync" call.
The sync call will guarantee that any writes, even if they are stored in the write cache, will be flushed to disk by the ...
2
votes
1
answer
11k
views
docker-compose build --no-cache not working
I made some updates on a Dockerfile for one of the services, but the changes are not reflecting, when running docker-compose build, not even with --no-cache option.
I added two two parameter before ...
0
votes
1
answer
549
views
Nginx + Passenger: Cache 404 urls
Context
I have a Rails app with a nginx server and Passenger.
The app is dynamically generating pages based from the request url: if the url exists in the database the app renders the corresponding ...
0
votes
1
answer
4k
views
NGINX: Ignoring Certain URL Parameters for Cache Purposes
So say my NGINX cache key looks like this:
uwsgi_cache_key $scheme$host$request_method$request_uri;
... and that's mostly what I want. I want NGINX to make a cache key based on the entire URL, ...
0
votes
1
answer
1k
views
Nginx caching for too long
I'm trying to configure Nginx as a simple caching proxy for DarkSky so I can stay under the 1000 per day limit. However, I'm having an issue wherein it seems to not be honouring the proxy_cache_valid ...
1
vote
1
answer
5k
views
Nginx proxy cache 404 not found static files (css,js,jpg,png vb)
My Nginx Proxy Server : 10.90.100.2
My Backend Server : 10.90.100.3
my proxy server not loading static files (css,js,woff,png vb.)
My conf
proxy_cache_path /etc/nginx/proxy_cache levels=1:2 ...
1
vote
0
answers
573
views
systemd-resolved not cache not effective when queries from haproxy
We're running HAProxy 1.8 on Ubuntu 18.04 and we've been noticing slow startup times. We've previously pinned slow startups on DNS lookups, since we have lots of backends which HAProxy has to resolve ...
0
votes
1
answer
1k
views
NGINX FastCGI Cache on NGINX > Apache > PHP-FPM
I had failed attempts earlier at getting Nginx Fast-CGI caching to work in Nginx > Apache > PHP-FPM config so I started fresh on a new server but am still having issues.
The server has a clean ...
1
vote
2
answers
214
views
How To Implement Cache Busting with EXEs from NGINX
I have a customer who's got one of these ISPs that implements a cache in order to speed up customer web browsing. This caused him not to download the latest EXE from our NGINX server after an udpate ...
4
votes
3
answers
2k
views
NGINX Not Serving "Fast" Stale Content with proxy_cache_background_update
We are running NGINX in front of our backend server.
We are attempting to enable the proxy_cache_background_update feature to allow NGINX to async updates to the cache and serve STALE content while ...
3
votes
1
answer
2k
views
Nginx $upsteam_cache_status custom header will not appear
I am trying to debug the nginx proxy cache and to do so I need to see the $upstream_cache_status value. My config is as follows:
http {
...
proxy_cache_path /tmp/cache_nginx levels=1:2 ...
3
votes
0
answers
596
views
PrivateBytesLimit in web.config doesn't change cache EffectivePrivateBytesLimit
Our web-server has a worker process (w3wp.exe) that uses too much memory. Following this answer I tried to limit how much memory the process can use for caching in the web.config:
<system.web>
...
22
votes
2
answers
9k
views
What is the latency WITHIN a data center? I ask this assuming there are orders of magnitude of difference
I am trying to figure out something that I just cannot find a good answer to.
If I have say a REDIS cache (or some external in-memory cache) sitting in a data center, and an application server ...
0
votes
1
answer
272
views
Are my NGINX server blocks set up improperly (HTTPS 301's and assets not being cached in browsers)?
I inherited a server and there are a couple of issues that I have diagnosed and that certain page speed performance tests are flagging.
1) In the server block certain requests are being redirected ...
0
votes
1
answer
3k
views
Nginx - disable POST data caching
I noticed that when someone sends big file to Apache website proxied by Nginx, disk usage on Nginx machine goes up. It's especially noticeable when someone uploads file that is big comparing to disk ...
2
votes
0
answers
271
views
Nginx to cache pages only for bots/spiders
Imagine we have an online store site. It contains list of items to sell, and prices associated with it. Due to messy math behind price (they used to offer discounts based on user history, and we can't ...
1
vote
1
answer
2k
views
nginx 302 redirect to file not updating
We have a Debian 9.4 box running nginx 1.10.3. The purpose of the box is to provide redirects to files and resources so that Marketing can provide links in their materials, where the underlying ...
1
vote
0
answers
2k
views
Apache is caching virtualhost, how to disable caching?
I got the one VirtualHost block in httpd-vhosts.conf working correctly. From an external client, it was correctly forwarding the site name to the proper IP of my backend webserver.
<VirtualHost *:*...