Questions tagged [cache]

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

1588 questions
0
votes
1 answer

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 adding a product to the cart, and clicking…
DanRan
  • 73
  • 1
  • 3
  • 22
0
votes
1 answer

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's TTL is 5 minutes. The website's HTML, js and…
0
votes
0 answers

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 physical memory to cache files. This cache is called…
King David
  • 549
  • 6
  • 20
0
votes
0 answers

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 redundant or critically missing? If I wanted to set a…
0
votes
1 answer

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 under the same URL? I'm thinking about this problem…
Miodek
  • 3
  • 1
0
votes
1 answer

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) { return (pass); } set…
0
votes
0 answers

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 Accept-Encoding; expires 1M; } the issue is…
0
votes
0 answers

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 other responses like 400 etc. I am not able to see…
0
votes
1 answer

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 every file and folder within the CSC folder. I have…
0
votes
0 answers

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 NVMes many slow-ops show up. Therefore, we…
pawel_winzig
  • 101
  • 2
0
votes
1 answer

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 levels=1:2 keys_zone=phpcache:500m max_size=30g…
0
votes
1 answer

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 levels=1:2 inactive=120s…
0
votes
0 answers

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 comunication with cloudflare on the system nginx and…
0
votes
0 answers

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 using those. I'm also storing the access_log in…
0
votes
1 answer

[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 ideas to advance my NGINX configuration: A)…