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
0 votes
0 answers
10 views

How does Solr autowarming and the various cache mechanics work?

I was reading about the caches and warming and I'm left with a bunch of questions. Google landed me here: https://solr.apache.org/guide/7_3/query-settings-in-solrconfig.html Though the latest version ...
KoenDG's user avatar
  • 85
0 votes
1 answer
37 views

Nginx. Override header in cached object, is it possible?

My team uses nginx with cache. The problem is that the application in upstream sends some headers that we would like to override in the cached object. One can see the headers saved in the cached ...
Pier A's user avatar
  • 71
0 votes
0 answers
18 views

Squid cache 302 responses

I have a very specific use case in which I need to cache EVERYTHING. Including 302s. I know it's technically against the HTTP RFC, but I know those redirects will always be the same and I need them to ...
Martin Horský's user avatar
0 votes
1 answer
142 views

FireFox gets ns_error_net_interrupt when clicking on loaded page

FireFox is connecting to my website, but accessing already visited pages would randomly not connect resulting in a Secure Connection Failed Chrome and Microsoft Edge are not having that problem. ...
MeSo2's user avatar
  • 264
0 votes
0 answers
36 views

Is there any cli to detect directory changes between bash script runs?

For example I have this command generate-and-deploy-new-version ./site-directory and I want to run it only if content of the ./site-directory was changed. if checkchanges "./site-directory" ...
ais's user avatar
  • 101
0 votes
1 answer
77 views

Nginx FastCGI Skip Cache Rules for /shop/ in Wordpress woocommerce, why aren't they working?

I am running a LEMP server with Wordpress and Woocommerce. My site is live at https://www.mcmo.is. My Nginx Skip Cache rules seem to be working except for on one page: https://www.mcmo.is/shop When ...
DanRan's user avatar
  • 69
5 votes
1 answer
107 views

How to use targetcli to disable iSCSI write cache

I have exported a single disk as an iSCSI target using targetcli on a Linux host. On a remote machine I have connected to the device, and placed a ZFS volume on it (as a replication target with zrepl)...
Malvineous's user avatar
  • 1,095
0 votes
1 answer
84 views

What happens to a user's browser cache when the website's IP address changes?

When a website's nameserver is set to point to a new IP address, do the cached html pages and images in the user's browser invalidate and get re-fetched? Consider this case: The nameserver's A record'...
Peter Henry's user avatar
4 votes
3 answers
777 views

What are the options to monitoring page cache usage?

In essence the Page Cache is a part of Virtual File System (VFS) which main purpose, as you can guess, is improving IO latency of read and write operations. In computing, a page cache, sometimes also ...
King David's user avatar
0 votes
0 answers
51 views

production kafka clusters + How to optimize Page Cache

one of the importance things in Kafka production cluster is the page cache here is a good explains what is page cache PageCache is a typical read/write cache. The operating system uses the free ...
King David's user avatar
0 votes
0 answers
35 views

Nginx + Wordpress caching - Configuration file sequencing

I'm new to Nginx and Wordpress as a combo. I would love a sanity check on this server side caching code. Specifically Is the sequencing correct - esp. the location statements? Is there anything ...
Outbound's user avatar
1 vote
2 answers
97 views

Prefetched Small File Cache

First, my use case: On my Linux-based server I am getting unsatisfactory disk IO performance for small files, and am limited to the approximately 100 IOPS that a 7200rpm HDD will support. This is of ...
lte678's user avatar
  • 13
0 votes
1 answer
34 views

If I relocate my website's server (changing the IP in the process), will my users be able to access it under the same domain?

If I first publish my website from my server which is in city A, and then move this server to city B (which I expect to change its IP address), will the website's users still be able to access it ...
Miodek's user avatar
  • 3
0 votes
1 answer
111 views

What does this block of varnish code do?

I have this code in varnish config and not sure what it do! This config will cache or not my client requests? what is wrong with it? sub vcl_backend_response { if (beresp.status != 200) { ...
Morteza's user avatar
0 votes
0 answers
25 views

nginx assets cache not working

I try to add cache for all css/js files in nginx configuration file and i get error. location ~* \.(css|js)$ { add_header Cache-Control public; add_header Pragma public; add_header Vary ...
morozov dmitry's user avatar
0 votes
0 answers
75 views

Apache Server Config Set Headers Conditionally

I am trying to set cache age for 200 responses and no cache for rest of the calls. I tried below config, which works fine when 200 OK response comes up and I can see max-age=800 in headers But for ...
Vivek Dhiman's user avatar
0 votes
1 answer
682 views

How to take ownership of all contents in CSC folder?

I have files that was saved as offline files from a Synology server to the CSC folder on my computer that I would like to delete. I cannot delete the files unless I individually take ownership of ...
smithalysia92's user avatar
0 votes
0 answers
271 views

changing queue parameter nr_request on NVMe dev

We would like to use NVMes (SAMSUNG MZ1LB1T9HALS-00007) as a cache-tier in a Ceph System (17.2.0). The problem is that the stored data has a lot of small files and if hot-tiering is set to ~70% on the ...
pawel_winzig's user avatar
0 votes
1 answer
219 views

Nginx FastCGI cache is EXPIRED when it should not

Nginx sets the x-fastcgi-cache header to EXPIRED a few hours after the page was first cached, whereas the cache validity is 1 week. Nginx Config: fastcgi_cache_path /usr/share/nginx/fastcgi_cache ...
Fluktegrute's user avatar
0 votes
1 answer
519 views

Nginx cache does not set the "X-Proxy-Cache" header

So I´m currently trying to implement caching on my NGINX webserver. For now I have a single conf file in my sites-enabled directory linked, which looks like this: proxy_cache_path /var/cache/nginx ...
MielkeDaniel's user avatar
0 votes
0 answers
284 views

How to create a proper nginx fastcgi configuration for 1 server 1 domain

I would like something simple like everything to redirect to ssl and from there cached I guess no? How can I get non www version to redirect to www version as well PS. I am using ssl strict ...
Crypto Coupons's user avatar
2 votes
0 answers
196 views

cachefilesd - how to ensure file is copied from local cache?

I have setup cachefilesd and to check if it is correct I verified following: cachefilesd service is running NFS storage is mounted with -o fsc and able to see FSC set to yes in /proc/fs/nfsfs/volumes ...
astre's user avatar
  • 121
0 votes
0 answers
99 views

Squid Proxy Access logs not updating http_username when user uses different username

I'm using squid proxy on Ubuntu 22.04(LTS) with auth_param basic program /usr/lib/squid/basic_db_auth and it's working fine. I am able to add the users to the mysql database and able to use the proxy ...
Rhythm Bhiwani's user avatar
1 vote
1 answer
193 views

How can I curl -IL all the website pages starting with the root pagenot just 1 page at the time?

I need to curl -IL all the website and maybe do cron job or something every 24hrs so fastcgi can cache all the pages on vgo The cache don't hit unless I curl -IL the webpage so I need something that ...
Crypto Coupons's user avatar
0 votes
1 answer
110 views

[Wordpress][CACHE] Fastcgi_cache or proxy_cache?

I'm preparing a server to host a classic WordPress site (lots of dynamic content). I have an apache server associated with a Nginx reverse proxy ( with the proxy_pass configuration ). I have several ...
Vold DRag's user avatar
0 votes
1 answer
376 views

How to combine an SSD with two HDDs in a RAID1-ish hybrid setup?

Coming from Linux SSD as HDD cache, I'd like to set up an SSD (or rather a partition thereon) as cache for basically a RAID1 of two HDDs. But since the data might remain cached on the SSD for while, I ...
Tobias Kienzler's user avatar
2 votes
2 answers
494 views

Distributed SSD cache for network storage

Our small computing cluster has 3 computing nodes and 1 file server. The file server has around 70TB data to be accessed by the 3 computing nodes. All of the 3 computing nodes have 3 4TB SSDs which ...
Leo's user avatar
  • 21
2 votes
2 answers
3k views

Safe way to clear all packages from yum cache?

I know that yum clean all doesn't necessarily clear all the package files. I know from "Maybe you want: rm -rf /var/cache/yum" that I might have to, good grief, bluntly clear all of /var/...
Steve Summit's user avatar
0 votes
1 answer
147 views

Cache mechanisme in kubernetes

I've got the next setup: Proxmox 7.2 CEPH 16.2.9 K3S v1.23.15+k3s1 CEPH CSI v3.7.2 CEPH using as RBD-storage for QEMU images and K8S PVC. When I do disk benchmark in QEMU I've got the next results: ...
chs_voks's user avatar
1 vote
1 answer
1k views

Nginx - No last-modified or Etag response header on HTML

I am facing a rather odd issue with my web server. The server is configured with Ubuntu 20.04, Nginx v1.22.1, PHP 8.0, and MariaDB to host my WordPress website. The issue is, the server is not sending ...
Dhananjay Bhardwaj's user avatar
0 votes
0 answers
228 views

How to configure nginx reverse proxy to stream large files immediately

I have an nginx server configured as a reverse proxy that is working fine. However I am serving up large MP4 files and there is a very long delay since the nginx server has to download the entire file ...
Ian Smith's user avatar
0 votes
0 answers
185 views

Browser random behaviour in using cache and reloading for js/css from server despite setting cache-control header

I have set cache-control header in my nginx conf file successfully for js/css files location ~* \.(css|js)$ { add_header Pragma public; add_header Cache-Control "public, must-...
codingenious's user avatar
0 votes
1 answer
305 views

Cached windows domain credentials issue

I need to delete or lock out a single cached domain account on a local pc. If I disable the cached logon domain information I will lockout me from the pc if I am not in the office. Is there a way to ...
solonely's user avatar
0 votes
1 answer
160 views

Mount smb remote storage on debian with local disk caching using FS-Cache for CIFS

I am trying to connect a smb remote storage to my debian server and use the available space on the local disk as a cache using FS-Cache for CIFS. I have already tried the following code but it doesn't ...
dami3n's user avatar
  • 1
2 votes
0 answers
140 views

Pagespeed delivers content with gzip header but not gzip content all out of nowhere?

All out of nowhere our website did not longer load CSS. The Chrome browser console showed Error 330 (net::ERR_CONTENT_DECODING_FAILED) With the httpie tool a similar error: $ http "https://www....
Alex's user avatar
  • 696
0 votes
0 answers
103 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 ...
user103969's user avatar
0 votes
1 answer
616 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 ...
SScotti's user avatar
  • 141
0 votes
0 answers
19 views

Cache basic files properties of a disk?

I have a large BTRFS disk on my Linux Samba server. The content of the disk is rarely accessed, so most of the time the disk is sleeping. When I need to check if to see basic properties, not the file ...
Damn Vegetables's user avatar
1 vote
0 answers
204 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 ...
Ardneliahs's user avatar
1 vote
1 answer
596 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
804 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
0 answers
82 views

How to stop tomcat from compiling jsp for single page app

We have a server with tomcat 9 running on RedHat linux, and a vendor provided dynamic content management system that builds jsp pages to show news article types of content based on a query string ...
kromaak's user avatar
0 votes
0 answers
74 views

Disable sync writes on lvm cache

I have nvme devices spread across a couple nodes and connected in a raid1 over the network. I'm using the raid set as a cache device using lvm. I consider the cache device very reliable. Is it ...
Fallen's user avatar
  • 1
0 votes
1 answer
883 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
397 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
272 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
328 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
225 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
34 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
1k 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
2 3 4 5
32