Questions tagged [cache]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
805 views

Unbound as a caching intermediate server is slow, and doing more than what I need

What I need A forwarding DNS server as an intermediry to another DNS server that serves expired records and renews its cache later. Problem I tried to use unbound as the only software that I've found ...
Masood Lapeh's user avatar
-1 votes
1 answer
1k views

disk cache mode: "write back" vs "write through" in iscsi context

I have a few iscsi drives connected to a debian. The iscsi drive (sde,sdg, one for each path) and the multipath device (dm-25) have the "write_cache" property (/sys/devices/virtual/block/dm-...
user3615294's user avatar
0 votes
1 answer
1k views

Nginx cache for frequent and different requests

I have a service. This service has a GET handle(/api/v1/retrieve_blocks). This handle's requests and responces are small, no more than 1024 characters. regular situation: this handle is constantly ...
сергей прудников's user avatar
0 votes
1 answer
499 views

Nginx - fastcgi cache not working for rewrite enabled php page

I've been trying to figure out why Im failing to achieve fastcgi caching for a rewrite rule applied php page. While all other request wonderfully cache, the rewrite ^(.+)/special/?$ /inc/special....
TheMonkeyKing's user avatar
1 vote
0 answers
410 views

Squid Cache is not caching anything - TCP_MISS is the result every time, please help me fix the configuration

I am trying to use Squid Cache for the first time. My aim – is that for any HTTP response from 192.168.0.2:3001 is cached and served from the cache. My config is as follows: http_port 3128 acl ...
RenegadeAndy's user avatar
0 votes
1 answer
536 views

HAproxy getting cache lookups but no hits

My situation is: cache is enabled, lookups are happening but no cache hits. This is my configuration: cache cache-foo total-max-size 32 max-object-size 1024 max-age 120 backend foo_backend ...
edmz's user avatar
  • 215
0 votes
1 answer
263 views

Share cache between multiple location blocks

Considering a nginx server with the following two locations which each serve a webapp, including some static resources and a REST API. Is there a way to cache the common resources, e.g. /proxy/host1/...
Coxer's user avatar
  • 197
0 votes
1 answer
44 views

Is include() cached with fastcgi?

I have a script like this script.php <?php include "data/package.php"; echo $package[0]["name"]; echo "Hello World"; ?> and i do cache false with this map $...
yvgwxgtyowvaiqndwo's user avatar
2 votes
1 answer
2k views

write cache in RAM for NFS?

is there a way, solution for a Linux server (SLES) to put write (or even read) caching in RAM? Having big RAM, ex.: 2 TBytes, but limited NFS IOPS and we need a big IOPS for DB files, stored on NFS.
jim7475's user avatar
  • 51
1 vote
0 answers
203 views

Couchbase nodes are stuck in pending after bucket creation, nodes aren't rebalancing

If anyone here is familiar with setting up Couchbase, I need your help. I'm in the process of migrating all of our on-prem servers to Azure. Right now we're trying to get Couchbase in the cloud to ...
Hey_Mindo's user avatar
1 vote
0 answers
87 views

custom fast cgi cache duration for a location

i have this configure location ~* \.php$ { try_files $uri /index.php =404; fastcgi_pass phpstream; fastcgi_index index.php; fastcgi_cache GCache; ...
yvgwxgtyowvaiqndwo's user avatar
2 votes
0 answers
461 views

Data corruption after dmsetup suspend, reload, resume, and re-suspend

Consider the following series of events for a device-mapper crypt target, test, holding an ext4 filesystem. These three commands swap out the crypt target's table with a new (dummy) table. This ...
forest's user avatar
  • 462
0 votes
0 answers
402 views

Massive performance issue for just two users in UI and Download

I have a strange issue with my self hosted nextcloud instance: All works fine, but I have two users who report huge issues with speed when accessing that nextcloud. Two independent effects apparently: ...
arkascha's user avatar
  • 168
0 votes
2 answers
4k views

Disable linux cache memory

Currently i have a server with 4 gb of ram runing 2 rsyncs task (100gb each) every 5 minutes and some monitoring containers, eventually the linux cache eats all ram (rsync faults) and if the ...
Carlos Rubio's user avatar
0 votes
1 answer
4k views

The server's host key is not cached in the registry

There is a scheduled job to send files via psftp command (psftp -bc -v -P 22 -l username -pw password -b upload220506.ftp ftpsitename) in windows server. It is already cached by running exe ...
Formula One's user avatar
2 votes
1 answer
620 views

Nginx - disable rate limiting for cached resources

I have an application does full text search on my product database. Certain searches are suggested to the user and are much more common than other searches. As full text searches are expensive, I'm ...
nwarp's user avatar
  • 143
0 votes
0 answers
172 views

How to properly cache content in NGINX like in Plus version?

I saw official NGINX tutorial regarding content caching and tried to modify it according to my needs. I use CDN (Cloudfront), but the performance doesn't convince me. If my server was more faster it'd ...
AtomX's user avatar
  • 125
1 vote
1 answer
966 views

getting 412 precondition failed with ngx_cache_purge when trying to purge cache

I am new to this and just started using nginx for my pet projects. now i would like to install and use ngx_cache_purge module from https://github.com/nginx-modules/ngx_cache_purge, since it has some ...
cheshie's user avatar
  • 111
0 votes
1 answer
43 views

Arp behavior on non requesting user for response

If we imagine we already have a valid cache for a pair in computer B and then composer A asks about the same pair and computer C responses with the pair information, what would happen here to computer ...
Steve Moretz's user avatar
1 vote
1 answer
337 views

MariaDB cache going cold overnight

We are running a LAMP stack which includes MariaDB 10.5.15 on Centos 7. It's a dedicated server with 4 CPU's and 8GB RAM. Never had a problem until the last few weeks, where I noticed slow queries ...
MrCarrot's user avatar
  • 355
0 votes
1 answer
1k views

Why does drop_caches increase "available" memory

I encounter low memory issues on proxmox 7 nodes I'm managing. When reading about similar problems I was directed to linuxatemyram.com, after reading this page I started monitoring "available&...
Teriblus's user avatar
0 votes
1 answer
302 views

NGINX Reverse Proxy And Cache MS Graph API

I'm building a web based company directory which has roughly 450 employees. The data source being used is the Microsoft Graph API (Azure AD). This API requires you to make a request for every employee ...
Justin's user avatar
  • 113
1 vote
0 answers
411 views

Slow response time when server is idle, fast response time when server is loaded?

I'm running a 40 thread / 125GB RAM server. The server is based on CentOS 7. I have noticed that the server response time is higher when the server is idle: You can see on the screenshot here that ...
Kalvin Klien's user avatar
2 votes
2 answers
3k views

How to implement caching of HTTP responses in Kubernetes?

How can I cache HTTP responses from my services in Kubernetes? I have a simple web service in my cluster and am wondering how I could cache static assets (static html, images, fonts, etc.) beyond ...
nfelger's user avatar
  • 121
-1 votes
1 answer
467 views

How to Intercept and cache LDAP Search and Bind requests

I have a production web server running Django. Currently every request made requires an LDAP Bind and Search request. I can use the django-auth-ldap plugin to enable LDAP Search caching. However, my ...
Anthony Fammartino's user avatar
3 votes
1 answer
759 views

Page cache in Kafka

We are receiving alerts for kafka memory utilization in our kubernetes cluster and analysing it seems that most of the memory is page cache. I am aware that kafka uses loads of page cache for IO ...
Putharekulu 's user avatar
0 votes
2 answers
688 views

NFS with FS-Cache - set up, but still says it's disabled

I have about the same problem as this one here, but that one seems to have been solved because cachefilesd hasn't been enabled. I have it enabled (removed the comment before RUN=yes in /etc/default/...
Richard Rosner's user avatar
0 votes
1 answer
975 views

Where is IIS output cache location, and how can I relocate it?

I've successfully configured IIS output cache. However after repeated google pagespeed tests it seems that the page speed is even slower with output caching compared to without output cache ...
g.pickardou's user avatar
1 vote
1 answer
324 views

Is it necessary to set a different ttl before change a Route53 DNS record value?

The first time create the Route53 DNS record with a load balancer origin DNS name with ttl 1 day. After some days, we want to change the value to another load balancer origin DNS name. Do we need to ...
freetimetime's user avatar
0 votes
0 answers
79 views

CDN video caching duration

Are there any standards about for how long (days, weeks) do CDNs cache video content? This other answer suggested that it is only for a short period of time (e.g. 1 day) but that information is almost ...
ahron's user avatar
  • 375
0 votes
2 answers
1k views

Apache: I cannot set full cache header for text/html using htaccess

I had a similar problem where I couldn't set the full cache header for JS and CSS files in my htaccess file, and it turned out I couldn't because the cache expiry was being set on the server and I had ...
228's user avatar
  • 1
0 votes
0 answers
1k views

LVM aggressive read and write cache

I've added a 2 TB RAID1 SSD as a writeback cache to a 10 TB RAID1 HDD using LVM 2.03.11(2) (2021-01-08) like this: lvcreate --type raid1 --mirrors 1 --nosync -l 100%FREE -n sshd sshd /dev/sdc /dev/sdd ...
Chris's user avatar
  • 270
0 votes
1 answer
127 views

How to distribute Varnish cache differently to different kind of requests?

I have a redirect in my store that shows a different store view based on the client's location. It reads the header via Fastly and redirects the customer to a different store view using every time the ...
Rafael Corrêa Gomes's user avatar
0 votes
0 answers
60 views

Why apache2 mod_cache_disk cant store files in ramdisk?

I use Apache2 mod_cache_disk with symlink to my ramdisk: /tmp/ramdisk/mod_cache_disk but I cant get it to work :( It only works when path leads to real directory. How can I fix this problem ?
Macsurf's user avatar
  • 51
0 votes
1 answer
346 views

only flush the write cache if there's no read activity

Normally the Linux Kernel flushes the write cache if a specified time limit is exeeded or the cache is full. This leads to stalling with HDDs since the writing process makes reading processes much ...
france1's user avatar
  • 23
0 votes
2 answers
955 views

Adding location-block to cache files makes those files return 404

I want to cache some static files using Nginx. But I somehow can't get it to work. This is my nginx.conf: user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*....
O'Niel's user avatar
  • 105
1 vote
0 answers
601 views

NFS cache on Linux client but only for metadata?

I have several mounts shared via NFS. They contain loads of files, from text files to RAW photos. Issuing find on them is rather painful as even on 1GbE link it just doesn't happen as smooth as on ...
Dominik Nieoficjalny's user avatar
0 votes
0 answers
1k views

How can we remove Google cloud builder cache. I am trying to build an image but it gives an error from a previous build attempt

This is the error it gives but the thing is I corrected the "MKDIR" command to mkdir but the error didn't go away, there is no MKDIR command in my Dockerfile anymore but the error stays the ...
Sardar Arslan's user avatar
1 vote
1 answer
383 views

NGINX: Can I to use proxy_no_cache directive with upstream response body for conditional caching?

We are using Ngnix as a cache-proxy in front of a 3rd party service and have the following directive to ensure upstream responses with a status code of 200 are cached... proxy_cache_valid 200 364d The ...
BitShredder's user avatar
0 votes
0 answers
32 views

Sessions lost on specific network only

NOTE: My apologies - I am not a server admin, but I have a problem that I believe may be server related, or combination of server and network related. I do not have too much technical information ...
Kobus Myburgh's user avatar
2 votes
1 answer
5k views

lvmcache/dm-cache writeback cache full performance

I have a SSD writeback cache in front of a HDD, set up through lvmcache (so a dm-cache). When the cache LV is not full (Data% column in lvs < 100.00%), writes go to the cache device (monitored via ...
Albert T's user avatar
0 votes
1 answer
120 views

"The User Agent is required to access this page" message only goes away when I clear NGINX cache

I'm new to NGINX and can't really tell if there's a problem with it or with our app. My PHP application has a php package Device Detector that is responsible for User Agent info as well as CodeIgniter,...
Cris Tecelo's user avatar
2 votes
1 answer
2k views

How to automatically purge cache with nginx using the http-cache-purge module (ngx_http_cache_purge_module.so)

I am running an Ubuntu 20.04 LEMP server with wordpress installed on it. I am using the nginx.org repository for nginx, but I compiled the cache-purge module (ngx_http_cache_purge_module.so) from ...
DanRan's user avatar
  • 123
0 votes
0 answers
287 views

Caching 401 response on bad token in nginx njs

In our application whenever a token (that arrives in a header) is invalid - it is practically guaranteed there won't be an exact valid token. So I'm trying to offload the responsibility of responsding ...
Boaz's user avatar
  • 405
1 vote
0 answers
706 views

Keycloak: Difference between Authentication sessions and User Sessions

I was going through the documentation https://www.keycloak.org/docs/latest/server_installation/#cache Here they have described different types of caches. I didn't quite understand the definitions they ...
MrRobot9's user avatar
  • 123
0 votes
1 answer
382 views

Router forces browser to use older, presumably cached, webfiles

We are trouble shooting website where we deploy a new version but our Computer browser still pulls the older pages. When we disconnect from the router (WiFi) and connect to a hotspot (mobile phone/...
puk's user avatar
  • 285
0 votes
0 answers
471 views

HTTP_IF_NONE_MATCH Missing on Server Side with Chrome Requests to NGINX

I'm trying to add etag based cache verification to a web app I've developed that runs on Apache via an NGINX reverse proxy. The web app is written in Perl. In the Perl script, I check for the $ENV{'...
Timothy R. Butler's user avatar
0 votes
0 answers
81 views

Why I'm Getting "Service web-cache lost on WCCP clinet" error on cisco router?

I'm configuring wccp and squid. Here is wccp configuration or router: ip wccp web-cache redirect-list wccp-access group-list wccp-server ! interface FastEthernet1/0 ip address 10.10.10.1 255.255.255....
Mehran's user avatar
  • 21
0 votes
2 answers
1k views

MySQL performance issue due to caching

perl mysqltuner.pl --host 127.0.0.1 [--] Skipped version check for MySQLTuner script [--] Performing tests on 127.0.0.1:3306 [!!] Successfully authenticated with no password - SECURITY RISK! [!!] ...
Sayaman's user avatar
  • 187
0 votes
1 answer
876 views

Why browsers fetch images again after reloading my page?

I am developing a web app, and I want all the images (a couple hundred MB worth - 20 000 - 50 000 thumbnails) to be downloaded once and never downloaded again, as those don't really change. Also, ...
Nikolai Frolov's user avatar

1
2
3 4 5
32