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
46 views

Squid Proxy StoreID use with pfSense

I am wondering if anyone can help me with learning more about Squid's StoreID? I have been researching this for some time. I got the web cache accelerator to work however at times I feel it is lacking ...
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 ...
3 votes
2 answers
5k views

Is it really possible to use PHP sessions for authentication with nginx fastcgi cache?

I have recently switched an opencart instance from Apache+mod_php to nginx+fastcgi+php-fpm. I have been trying to leverage caching for most pages through fastcgi-cache. Unfortunately, many users ...
0 votes
1 answer
5k views

How can I force to cache requests that have "Cache-Control: no-cache" in nginx when using a reverse proxy and it responds with 404?

The upstream server is sending a 404 with a header of Cache-Control: no-cache. Due to this, nginx is not caching the request. How can I force it to cache the request? This caching is only required ...
0 votes
1 answer
70 views

How to clear disk read cache? [closed]

For performance testing I need a way to clear all disk read caches, since rebooting takes time. Clearing the Windows managed cache clearing OS cache is not enough in my case. I want to measure ...
0 votes
0 answers
10 views

Ajax not loading show server response issue

i'm using lightspeed server when i hit a page it taking to much time to load ajax request while first it was working fine when i change DNS it slow down and lihgtspeed cache not working for loggedin ...
0 votes
0 answers
15 views

Light speed working on private window(incognito) while not working in normal window of a browser

My site is hosted on lightspeed webserver also using lightspeed plugin for optimization it working for private window but not working on normal window of my browser here is header request of both ...
0 votes
2 answers
5k views

caching system between nginx and gunicorn for django

I have a django project that I'd like to setup caching for. I want my caching system to cache everything after nginx. I found varnish but it has a problem - I use unix socket for communications ...
1 vote
4 answers
4k 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 ...
23 votes
3 answers
35k views

When to use or not to use sendfile on/off in Nginx?

We have this setting in our nginx.conf for quite a while. sendfile on; When we have updated a file e.g. /js/main.js and access from browser https://test.com/js/main.js?newrandomtimestamp, it will ...
0 votes
0 answers
57 views

IIS set conditional header in case of cache hit

Question: With IIS, I am looking solution to add a custom header in case of a cache-hit. Although I do not find any possibility to access cache-hits in the web.config. What should be added to the web....
0 votes
1 answer
89 views

Unable to detect page cache due to possible loopback request

We have installed cache plugin(WP Rocket) on our website. However, in my WordPress website health check, there is an error: Unable to detect page cache due to possible loopback request problem. Please ...
0 votes
0 answers
34 views

Writeback cache mirroring on Dell Unity 380F

It appears that described below behaviour leads to slow performance of synchronous writes for our database systems. https://www.delltechnologies.com/asset/en-us/products/storage/industry-market/h15162-...
0 votes
1 answer
123 views

ETag-based content revalidation

My CMS generates pretty complex pages and thus takes a little while to do so (about 2 seconds), which is well above my time budget to serve pages to the client. However it's very cheap for me to know ...
5 votes
1 answer
5k views

How do I speed up and cache mmap file access over NFS on Linux?

The server and client are both 64-bit Ubuntu 10.04 LTS. The application in question is a custom app that uses mmap() for fast random file access. Its ideal state is when the entire file is cached in ...
0 votes
0 answers
68 views

Nginx force revalidate stale cache after timeout

There is a case in Nginx reverse proxy cache usage, when; proxy_cache_background_update on; proxy_cache_use_stale updating; For the same URL if a single response comes from the upstream with max-age, ...
2 votes
0 answers
164 views

Cache writes with cachefilesd (non-shared mode) on Linux

I'm using cachefilesd as a read-cache for an NFS share. This is simple to set up and does what is says. However, I would like to also cache written files. I.e., if I write some.file, and then I read ...
2 votes
3 answers
3k views

Apache mod_expires

I am rather confused with the whole access and modification. I want the files to be cached until they are modified. If the data is the same, show cache version. If data has changed, download updated ...
2 votes
1 answer
228 views

change disk cache settings on Samsung PM9A3 via nvme-cli

I will be running Proxmox guests on a ZFS volume consisting of Samsungs PM9A3 NVME drives. I read here for ex. it might be an advantage in performance to keep the cache of those drives active. So I ...
0 votes
0 answers
41 views

linux read cache with minimal setup

I've been trying to find a tool that lets me configure an read cache SSD for an HDD in my little home lab, which is running arch linux (yes...) with the system being installed to the HDD. I'm on a ...
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 ...
0 votes
2 answers
226 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 ...
3 votes
1 answer
360 views

What is the solution to caching vs using a CSP nonce? I've been searching for a while, and haven't found it

I've never seen a good answer to this dilemma, and I've been searching high and low. It seems it is a choice between using a nonce and caching, you can't have both. Really bad choice! We're told '...
0 votes
1 answer
86 views

How to find optimum configuration in php.ini on openlitespeed?

I want to increase performance on pagespeed insights, but the problem is I don't know how to use all capacity of hardware on this server ! and I need your help please. I think litespeed not using all ...
0 votes
1 answer
90 views

Very low resource usage on Openlitespeed (LOMP) on Ubuntu 22.04

I have been testing a custom PHP script on LOMP (Ubuntu 22.04) running on VirtualBox (2GB/2Core). First, I tried Apache and upon benchmarking the script, it could complete 10K requests in ~36s - ab ...
3 votes
1 answer
5k views

Redis server high cpu debugging strategies

Recently, we have been noticing CPU spikes on our production environment caused by redis which can be seen below: To combat this issue, I have been restarting the redis server about twice a day :( ...
3 votes
2 answers
6k views

How to recover a cached LVM with cache on ram-disk?

In this article there is a nice recipe for how to use a RAM-disk as cache-device for a classical LVM volume. Assumed you have an elder disk, lots of RAM and no SSD, you can boost disk performance to ...
0 votes
0 answers
39 views

reverse proxy shall act as a cache and provide a website under a different domain

Assume a webserver providing a language version of a website accessable under the URL http://www.website-a.com/zh-hans/some-otherstuff/index.php I want to setup a reverse proxy for one language ...
-1 votes
1 answer
118 views

open() "/var/lib/nginx/cache/fastcgi/3/d0/bce7bdb8e2c388c7675c97c7324efd03" failed (13: Permission denied)

I am trying to add Caching for Proxy & FastCGI but once i try to view any page on the site it fails with 500 Internal Server Error and when i tried searching my logs for any errors i found that ...
9 votes
2 answers
19k views

How to setup Apache 2.2.3 to send "last modified" etc

and to tell browser to reload an object (and/or a page... everything on the site) only if is been modified since last visit time??? htaccess, httpd.conf... have you a ready directive right for my case?...
0 votes
1 answer
204 views

rsync cache/deduplication for similar files

I am using rsync to transfer/update 100s of TB from one fileserver to another, millions of files. Many of those files are quite similar (but not identical). I was wondering if there's a way to benefit ...
-1 votes
1 answer
329 views

Kubernetes homelab local storage options [closed]

I think I have an XY problem, if you can identify it as one, please answer accordingly! Background My primary goal is to learn Kubernetes, with a closely-followed secondary goal of doing homelab stuff ...
93 votes
16 answers
72k views

Why drop caches in Linux?

In our servers we have a habit of dropping caches at midnight. sync; echo 3 > /proc/sys/vm/drop_caches When I run the code it seems to free up lots of RAM, but do I really need to do that. Isn't ...
2 votes
1 answer
4k views

how to limit Dovecot.index.cache size

In my server I have various email accounts having a very large dovecot.index.cache file i.e. -rw-r----- 1 user user 72506540 Sep 16 20:20 dovecot.index.cache is there any way to size limit ...
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
0 answers
209 views

nginx: does it generate conflicts if any of the dynamic modules are different?

I have an instance on AWS running Ubuntu 22.04 on which I installed nginx and cloned the instance to build the ngx_purgue_cache module. This is my current nginx output $ nginx -V nginx version: nginx/...
0 votes
2 answers
243 views

Nginx try_files succeeds on deleted files, then nginx reports error with open()

I have this weird error that is happening where try_files directive successfully finds a file that was just deleted, then nginx proceeds to open the file and returns an error. I am using a standard ...
5 votes
3 answers
5k views

Strange Recurrent Excessive I/O Wait

I know quite well that I/O wait has been discussed multiple times on this site, but all the other topics seem to cover constant I/O latency, while the I/O problem we need to solve on our server occurs ...
14 votes
5 answers
41k views

How to clear (remove/delete) certificate (ssl/https) cache from chrome browser?

I lost many hours while setting up some self-signed certificates; the problem turned out to be that the browser (Chrome) cached a bad version of the certificate and then just wouldn't let go. I did ...
0 votes
1 answer
490 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 ...
0 votes
0 answers
49 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 ...
1 vote
1 answer
366 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 ...
11 votes
5 answers
19k views

How do I add no-cache headers to all 404 pages served by apache and nginx?

I have recently run into an issue after switching to Cloudflare, and the solution is to basically stop Cloudflare from caching 404 responses. In our load-balanced multi-server setup, occasional 404s ...
0 votes
0 answers
64 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 ...
0 votes
1 answer
3k 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. ...
0 votes
0 answers
78 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" ...
13 votes
6 answers
45k views

sssd and ldap authentication cache

On our box running OpenSUSE 12.2 we have installed OpenLDAP and sssd daemon. We are using these two services for user authentication. Recently we created a script which creates new web-users for our ...
5 votes
1 answer
455 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)...
0 votes
1 answer
289 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 ...
0 votes
1 answer
323 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'...

1
2 3 4 5
32