38,362 questions
Best practices
0
votes
0
replies
8
views
Apollo Client Cache Update Strategy for new object mutations
I’m trying to find an effective way to introduce newly created “second class” objects into the InMemoryCache. By “second class”, I mean objects that depend on a parent object. When I’m creating these ...
0
votes
0
answers
20
views
Revoking Connected Devices: How to Invalidate IMemoryCache Immediately to Prevent 2-Minute Access Window?
Hey i was building a DeviceService to know Connected Devices to an account after i builded every thing now i got issue with revoking device
Main Confusion :
that i decided to use IMemoryCache to ...
0
votes
0
answers
28
views
Redis as L2 cache for Hibernate can't find the redisson.yaml in my deployments
I am trying to make the redis sentinel pods in my cluster as my L2 cache for hibernate JPA.
I am using wildfly 32.0.1.Final server with my deployment structure having a ear with a lib and a META-INF ...
-1
votes
0
answers
43
views
Next.js 16 Partial Prerendering (PPR) + Cache Components: Why is my dynamic segment not streaming after first request?
I'm experimenting with Next.js 16's new Cache Components and Partial Prerendering (PPR) to build a product page that:
Serves a static shell instantly (HTML for layout, header, footer)
Streams the ...
1
vote
1
answer
55
views
Next.js 16 Cache Components: Why is my cache() function still hitting the database on every request despite using next: { revalidate: 3600 }?
I'm using Next.js 16 with Cache Components (cache() from React) to deduplicate and cache database queries across layouts and pages.
Here's my setup:
// lib/data.ts
import { cache } from 'react';
...
0
votes
0
answers
39
views
How is cache line format defined if cache size is not a power of two? (Intel Core i5-1028NG7 L1 Data Cache 48KB) [duplicate]
I’m studying CPU cache design and I have a question about cache address breakdown when the cache size is not a power of two.
According to the Intel 10th Gen Core processor datasheet [1], my MacBook ...
Best practices
0
votes
0
replies
94
views
Implementing TTL-based in-memory cache for macOS activity tracking
I'm building a local-first macOS productivity tracker that reads from the system's KnowledgeC database to analyze focus time and context switches. Since querying this SQLite database can be expensive ...
4
votes
1
answer
97
views
create unlogged table automatically on postgres startup or atleast not lose them due to a restart
I tried postgres unlogged table for using them as a cache to speed up queries and it works (50% query time got avoided). I can really recommend that to everyone.
But I restarted the server (I mean the ...
3
votes
0
answers
95
views
Why does my microservice return inconsistent results when using Redis caching with async SQLAlchemy?
I’m working on a Python FastAPI microservice that uses async SQLAlchemy (2.0) for database access and aioredis for caching query results.
The goal is to reduce load on a PostgreSQL cluster by caching ...
0
votes
0
answers
26
views
Docker build fails with random “Hash Sum mismatch” errors on macOS
I'm trying to build a docker image on my Mac, but it fails at installing some linux deps. I think it's all pretty standard, and it works for my colleagues, on CI/CD (details below)
Relevant part:
FROM ...
0
votes
1
answer
52
views
How can I set Redis key prefixes for sessions, cache, and queues separately in Laravel 12 (PHP 8.4)?
We’re running a Laravel 12 application (PHP 8.4) using Redis for sessions, cache, and queues — all within a single Redis database.
'redis' => [
'client' => 'phpredis',
'options' => [
...
0
votes
0
answers
48
views
WSO2 API Manager 4.5.0 – Out Flow mediation sequence not triggered when Response Caching is enabled
Everything works fine, caching is active and responses are served from cache.
However, when the response is served from cache (cache hit), the Out Flow (response flow) doesn’t execute at all — meaning ...
0
votes
1
answer
40
views
Implementing cache for server actions
I'm new to caching, if I understand correctly, with caching, a database query would only run once for a specific amount of time (e.g. 1 hour) until it's revalidated, but I read server actions are not ...
0
votes
2
answers
105
views
Angular + Nginx: some users get Unsupported Content-Type "text/html" loading chunk-*.js after deploy (chunk URL serves index.html)
Problem
After a deploy, a subset of users can’t load the app. For them, a specific old chunk URL (e.g. chunk-B3EQFA6E.js) returns index.html with Content-Type: text/html instead of JavaScript. That ...
0
votes
0
answers
64
views
Cache-from with Docker build image in AzureDevOps throws error because of tag
I am using AzureDevOps to build/push images to a registry. I am using script instead of the Azure DevOps docker task as I was not able to set DOCKER_BUILDKIT=1.
But what keeps happening is that it ...