Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
19 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 ...
Mina Golzari Dalir's user avatar
1 vote
1 answer
20 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'; ...
Mina Golzari Dalir's user avatar
0 votes
0 answers
32 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 ...
Hà Tường Nguyên's user avatar
Best practices
0 votes
0 replies
87 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 ...
Rustem K's user avatar
  • 1,252
4 votes
1 answer
91 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 ...
Theores's user avatar
  • 75
3 votes
2 answers
84 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 ...
Undepdev's user avatar
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 ...
fodma1's user avatar
  • 3,545
0 votes
0 answers
63 views

Firebase and IndexedDB caching strategies [closed]

I have been working on my React + Firebase app for the past year and I've come to the realization that I will need a caching layer to avoid unnecessary Firestore costs. My idea for the flow is as ...
Emi Buliga's user avatar
0 votes
1 answer
47 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' => [ ...
alexmcfarlane's user avatar
0 votes
0 answers
47 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 ...
Kürşat Oltulu's user avatar
0 votes
1 answer
39 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 ...
Morgana Freeman's user avatar
0 votes
2 answers
102 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 ...
Çlirim Murati's user avatar
0 votes
0 answers
63 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 ...
mp252's user avatar
  • 493
0 votes
1 answer
84 views

.jsonDecode -> FormatException: Unexpected end of input (at character 1) ^. Error thrown

I keep facing same error seeing logs of firebase crashlytics. .jsonDecode FormatException: Unexpected end of input (at character 1) ^. Error thrown . .jsonDecode (dart:convert) ...
Hyejung's user avatar
  • 1,314
0 votes
0 answers
22 views

Hibernate (5.3.3.Final) + Redisson (3.17.7) in a SBT project isn't evicting the cache from redis based on configured TTL

I am using a java-scala project and have configured the RedissonClient programmatically: public class RedissonConfigurationFactory extends RedissonRegionFactory{ private static RedissonClient ...
Vishal Dubey's user avatar
0 votes
0 answers
15 views

If cacheTag is used inside a forEach loop, will the returned data be cached within that functional scope? (Next.js 15 Canary)

I am currently using the Canary version of Next.js 15 to develop a project under the guidance of an instructor. I understand the general concept of using cacheTag to cache returned data. However, I am ...
Mohammed Tanvir's user avatar
-1 votes
0 answers
54 views

spark 3 is dropping cached fractions from memory

Im using Spark3 and Im observing that the cached partitions are getting dropped from memory. This is what Im doing: caching a df applying a filter on the cached df, assigning the result into a new df ...
dev's user avatar
  • 9
1 vote
1 answer
30 views

Spring - Cache - Concurency issue

I have this cache @Cachable(cacheName = CACHE_MY_CACHE, key="#param", sync=true) public Object doStuff(String param){ ... } Which is using Redis in the background so it's distributed ...
David S's user avatar
  • 307
1 vote
0 answers
51 views

xfun::cache_rds Take dependency on function definition

Suppose the following example: library(xfun) cp <- tempdir() g <- function(x) x %% 2L for(x in 1:2) { i <- cache_rds(g(x), file = "my_cache.rds", dir = paste0(cp, "/"), ...
thothal's user avatar
  • 20.6k
0 votes
1 answer
43 views

How to force Trino to always fetch data from source (no buffering/caching)?

I want to use Trino as a baseline system in an experiment. The setup: I will run multiple queries against two catalogs. For fairness in my experiment, I need Trino to fetch data freshly from the ...
user19948347's user avatar
0 votes
0 answers
25 views

DragonFly Cache Optimisation

I'm working on a project where I need to apply LFU on the the value for each key. Value is something x. Now while adding value for that key, I need to delete those which has been used very less. We ...
Rohit's user avatar
  • 1
0 votes
0 answers
28 views

spring 6.1+ allow to use @cacheable on reactive type (Mono<>), is it possible to use it with Redis?

the spring documentation says As of 6.1, cache annotations take CompletableFuture and reactive return types into account, automatically adapting the cache interaction accordingly. In order for such ...
0c7's user avatar
  • 33
1 vote
0 answers
22 views

the refresh_before option from MapProxy doesn't work

I've configured a WMS with MapProxy and I am currently working on the caching configuration. The refresh_before option is explained in the documentation. As far as I understand, MapProxy only caches ...
TEC HIB's user avatar
  • 11
2 votes
1 answer
91 views

Sequential compilation times of a jax-jitted recursive function

I have a recursively defined function my_func that is jitted using jax.jit from the jax library. It is defined below: # Imports import jax import jax.numpy as jnp from functools import partial import ...
Ben's user avatar
  • 539
0 votes
1 answer
62 views

why my bun with cache with docker is slower than node.js without a cache (i'm running both of them on localhost)

when i test my code with jmeter my average respond time on the bun with cache is higher that node.js that dont, i using 100 thread with period 1 second, but it seems the standard deviation is better ...
Mr F's user avatar
  • 1
1 vote
1 answer
81 views

Risc-v compressed instruction alignment [closed]

When supported, compressed instructions (RVC) bring a relaxation of code address alignment from 4 to 2 bytes. They also bring the possibility to intermix compressed and non-compressed instructions. ...
EnzoR's user avatar
  • 3,501
0 votes
0 answers
62 views

npm install fails with EEXIST / UNKNOWN error in Windows for Stencil web component project

I’m working on a Stencil web component inside a library that depends on other libraries maintained by my team. To get the latest versions of these components, I often need to delete node_modules and ...
João Vitor de Oliveira's user avatar
1 vote
1 answer
48 views

OutputCache but still going into code in Minimal API

I am trying to get cache working on my API call but every time I do a request it goes straight into my lookup service code. I have two services, stock and productlookup. The stock calls the ...
James Andrew Smith's user avatar
0 votes
0 answers
54 views

Why is my Cloudflare Worker skipped on “/” when `index.html` is served from edge cache (`cf-cache-status: HIT`)?

I’m protecting documentation behind a Cloudflare Worker that enforces a login. Route: docs.example.com/* → Worker Expectation: unauthenticated HTML navigations (/, *.html) should be redirected to /...
Taco's user avatar
  • 700
0 votes
1 answer
52 views

Next.js 14 App Router: Page works fine after restart, but product filters cause timeout after leaving app idle

I'm building an e-commerce site with Next.js 14 (App Router) and React 18. Website: https://parfumedeparis.az The issue The problem happens only on this page: https://parfumedeparis.az/az/store?page=...
Asgar's user avatar
  • 449
1 vote
0 answers
65 views

Apache HttpClient 5 cache not removing expired resources from disk

My application needs to fetch resources (images, CSS, fonts, etc.) from given URLs and cache them locally based on the Cache-Control/ETag headers returned with the resource. I’m using Apache ...
Teodor Mysko's user avatar
1 vote
0 answers
72 views

Flutter iOS clear phone cache

Is there a way to clear the cache on an iOS device in flutter? I currently use flutter_blue_plus package and my iOS device caches some data. Can I prevent the device from caching or just clear it?
Robban13's user avatar
  • 121
2 votes
1 answer
67 views

Spring Boot OAuth2 + MFA: Cached /oauth2/authorize request becomes null on server (works locally)

Body: I developed an IAM system using Spring Boot where I integrated multi-factor authentication (MFA). Here’s the flow I implemented: A client sends a GET request to /oauth2/authorize. This redirects ...
Heshan Sandaruwan's user avatar
3 votes
0 answers
120 views

IPC collapse with larger loop bodies despite constant I-cache miss rate, what's the bottleneck?

I'm seeing dramatic instructions-per-cycle collapse (2.08 -> 1.30) when increasing loop body size in simple arithmetic code with no branches, but instruction cache miss rate stays exactly constant ...
Transcendental's user avatar
0 votes
1 answer
73 views

React app served via Nginx/Docker shows stale JS & CSS in normal browser but fresh in incognito

My React app is served with Nginx inside Docker (with correct cache-control headers), but the outer server-level Nginx acting as a reverse proxy strips/overrides those headers, causing browsers to ...
jass's user avatar
  • 1
0 votes
1 answer
61 views

Next.js ISR + revalidateTag wasn’t updating data from WordPress (Pods). Turned out LightSpeedCache was caching REST JSON for anonymous requests

I had a Next.js page that fetches content from WordPress (Pods) and caches it for 5 minutes: // helper const data = await wpFetch<Content[]>( process.env.WP_PAGE_CONTENT_URL!, { revalidate: ...
Etemire Ewoma's user avatar
0 votes
0 answers
18 views

Questions about browser cache negotiation in Nuxt

I want to implement the cache negotiation for the public folder in the root directory. I configured it as follows in nuxt.config.ts. However, after running pnpm dev and pnpm generate, and then npx ...
shunpeng gao's user avatar
0 votes
0 answers
65 views

How to initialize Android OkHttp cache interceptor config at app start without blocking the main thread (Hilt + Coroutines)?

I have a CacheCreation class that prepares config for an OkHttp interceptor. It’s created during DI on app launch, and we currently use runBlocking so the object graph is ready before the first ...
Ajay's user avatar
  • 926
0 votes
1 answer
199 views

How do I properly invalidate and clear a Caffeine cache

I am struggling to properly invalidate the cache. import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.LoadingCache; import java.util.*; import java.util....
theuntamed000's user avatar
0 votes
0 answers
76 views

Node.js Redis key expires much faster than EX value specified

I'm having a strange issue with key expiration in node-redis. I'm trying to cache a response from an external API (jsonplaceholder) in my Express application, but the key expires much faster than the ...
kurtz's user avatar
  • 1
0 votes
0 answers
78 views

Clarification on ts-cacheable Cache Busting Policy

I'm considering using the ts-cacheable library (github - angelnikolov/ts-cacheable) for a personal project, and I need some clarification regarding its cache management policy, specifically concerning ...
sigur's user avatar
  • 690
0 votes
2 answers
65 views

RevalidatePath doesn't Reset The useTransition's pending state

now i have a next.js v15 app and i'm doing some mutation on the server using server action and here is the code for it export async function updateGuestAction(formData) { const session = await auth()...
Yousef Dawood's user avatar
1 vote
1 answer
101 views

Azure Function cache misses - In Memory Cache .NET [duplicate]

I have a Function App which uses In Memory caching in .NET. I'm storing cached results for 24 hours as it's not crucial for it to be updated immediately. I've added logging and deployed, I make ...
ServletException's user avatar
0 votes
0 answers
120 views

Serwist offline stops working after 24 hours. I want it to persist for custom time

I am using nextjs 15, with serwist. My pages are offline configured, because this is a static site. I dont need a fallback offline page. The issue is serwist works offline for 24 hours. After 24 hours ...
Ahmed Abid's user avatar
0 votes
0 answers
128 views

How to safely override Laravel's CacheManager to support tenant-aware cache in Stancl Tenancy?

I'm using the stancl/tenancy package in a Laravel v12 application and need to apply tenant-specific scoping to cached values. By default, the package overrides Laravel's CacheManager to apply tags() ...
Solomon Ochepa's user avatar
0 votes
1 answer
156 views

Spring WebFlux caching with Caffeine

I am having trouble understanding how to cache Reactive streams using the spring-data-starter-cache library. From tutorials such as https://www.baeldung.com/spring-webflux-cacheable, I see that they ...
user1927638's user avatar
  • 1,217
-3 votes
2 answers
90 views

Denodo Partial Cache Bypasses Global Security Policies – How to Maintain Both Security and Performance?

I'm working on a Denodo 8.0 setup where I've created a derived view on top of base views imported from Oracle tables. These base views have Global Security Policies applied using Denodo's row-level ...
Yatin Mehta's user avatar
0 votes
0 answers
82 views

Is Caching With Async Call Possible using DispatchProxy

I've been assessing using DispatchProxy as a means of Interception. Whilst it is great for synchronous operations, there are challenges with async. The new HybridCache has an async API and in any case,...
DavidRogersDev's user avatar
2 votes
1 answer
68 views

Cache updates in chatbot when adding new documents

I'm building a chatbot to answer legal-related questions. I'm facing an issue with caching questions and responses — the goal is to retrieve an answer when someone asks a similar question that's ...
Quyền Phan Thanh's user avatar
0 votes
0 answers
37 views

I cannot download a crate from a remote registry

I need your help with an issue that has left me dumbfounded for days. I have a setup with 2 artifactory servers: server 1, which hosts my private cargo registry, a repo of type "local". I ...
emahe's user avatar
  • 1

1
2 3 4 5
768