Questions tagged [cache]
A location or process for storing of transitory or temporary data in order to improve application or system performance.
1,600
questions
0
votes
0
answers
122
views
FastCGI cache and WordPress, is the cache skip for querystrings really needed?
I'm just making a few test on FastCGI cache and I see that the suggested .conf have this directive:
if ($query_string != "") {
set $skip_cache 1;
}
This will bypass the cache for every ...
0
votes
1
answer
857
views
Issue with 'mkdir(): No space left on device" in Docker Container. Might be some other issue though?
I have some docker containers (NGINX / PHP, MySQL, etc.) that have been running fine for years. However, recently I started seeing this error when running a PHP script in Laravel in the NGINX / PHP ...
1
vote
0
answers
310
views
How to make two squid servers share the same disk cache?
I'm trying to setup squid proxy in a kubernetes environment as a caching server with 3 replicas. I wanted to know whether all three replicas can share the same disk storage, or I'll have to assign ...
1
vote
1
answer
822
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 ...
-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-...
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 ...
0
votes
1
answer
504
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....
1
vote
0
answers
414
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 ...
0
votes
1
answer
545
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
...
0
votes
1
answer
269
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/...
0
votes
1
answer
45
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 $...
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.
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 ...
1
vote
0
answers
88
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;
...
2
votes
0
answers
472
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 ...
0
votes
0
answers
403
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:
...
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 ...
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 ...
2
votes
1
answer
635
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 ...
0
votes
0
answers
173
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 ...
1
vote
1
answer
978
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 ...
0
votes
1
answer
44
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 ...
1
vote
1
answer
338
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 ...
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&...
0
votes
1
answer
306
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 ...
1
vote
0
answers
415
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 ...
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 ...
-1
votes
1
answer
472
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 ...
3
votes
1
answer
770
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 ...
0
votes
2
answers
700
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/...
0
votes
1
answer
990
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 ...
1
vote
1
answer
325
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 ...
0
votes
0
answers
81
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 ...
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 ...
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
...
0
votes
1
answer
129
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 ...
0
votes
0
answers
61
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 ?
0
votes
1
answer
353
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 ...
0
votes
2
answers
962
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/*....
1
vote
0
answers
606
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 ...
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 ...
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 ...
0
votes
0
answers
33
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 ...
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 ...
0
votes
1
answer
121
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,...
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 ...
0
votes
0
answers
290
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 ...
1
vote
0
answers
712
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 ...
0
votes
1
answer
392
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/...
0
votes
0
answers
478
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{'...