Questions tagged [caching]

A cache is a mechanism for temporarily storing (caching) data locally in order to reduce access time to data stored far away. For CPU/disk/web browsing please use relevant tags (cpu-cache, diskcache,...)

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

When does Firestore's instance singleton serve subsequent document requests up from memory?

Is there a best practice on how to serve up singleton-like session data? I'd prefer to retrieve the user record once in the beginning and then always get the same record back from memory whenever I am ...
cmjordan's user avatar
0 votes
0 answers
5 views

How to disable Next.js cache in server-side component

I am facing an issue. I am using Next.js SSR (Server-Side Rendering), and when I run 'npm run dev,' everything works fine. However, when I build Next.js and run 'npm start,' the API response is cached ...
Henderson's user avatar
0 votes
0 answers
7 views

Debug peewee cache hits

The docs say: By default peewee will cache the rows returned when iterating over a Select query. I would like to debug when peewee hits or misses this cache. Looking at the source code, there's ...
pylipp's user avatar
  • 181
0 votes
0 answers
20 views

Quarkus Cache Eviction Listener

Any one has an idea if there is a way we can add an eviction listener to Quarkus Cache? https://quarkus.io/guides/cache It seems to use Caffeine cache underneath and Caffeine cache has capability to ...
Kathir's user avatar
  • 27
0 votes
0 answers
21 views

(1/1) SmartyException Source: Missing name in smarty_template_source.php line 169, with TM Mega Menu Module in Prestashop 1.7

I'm encountering a problem with my Prestashop 1.7 website, specifically when the TM Mega Menu module v1.7.2 (by Alexander Grosul from TemplateMonster) is enabled. The error I receive is: `(1/1) ...
Janusz's user avatar
  • 1
0 votes
0 answers
26 views

What do the offset bits represent in an address when determining if a Cache hit or miss?

I'm confused what the offset bits represent. Do they play any role in determining if we have a cache hit or miss? For example, if we have 4 sets, 2 bytes per block, and 1 block per set, then we need ...
ZacharyyK's user avatar
0 votes
0 answers
31 views

Blazor Server Project is NOT using the most recent css

Localhost still uses the initial version of the file. What can I do? (see pic) localhost remains cached I have tried CTRL+F5 over and over.. I have cleared all browser cache.. Cleaned & Rebuilt ...
Brian's user avatar
  • 3
-1 votes
0 answers
15 views

Android App Cache size discrepancy between Settings display and actual files in folder?

If I use Android Studio->Device Explorer to view my app cache contents at /data/data/com.###.###/cache/ it shows usage a far less than the amount advertised in the Settings screen for my app. Even ...
Jeffery Chow's user avatar
0 votes
2 answers
108 views

Allocation array in Ram, no cache misses, C/C++

Is there a way to say to the compiler: "do not try looking for it in the different caches and miss each time. Go for the RAM" That way it should be faster to access to a huge array, which ...
Mitto's user avatar
  • 1
0 votes
0 answers
16 views

How to view cached pages in Chrome cache?

A website I like has taken itself offline, and there is no cached version on google or archive.org. I have not cleared my cache; could it possibly be stored in the browser? I am using a Chromebook; ...
rradar's user avatar
  • 1
0 votes
1 answer
24 views

Redis cache cluster .net core

I had a question. I wanted to store my data with Redis cluster and for example store a series of users with unique IDs like User:Id {User:3737} in the user cluster. The problem I have is in the code ...
Hamed's user avatar
  • 11
0 votes
0 answers
16 views

SDImage - caching error with new public ec2 address

I recently reverted my mobile iOS app to a new public EC2 instance. I changed all records of the old public address to the new address, including the app delegate of course. However, there are still ...
WhySoSerious33's user avatar
0 votes
0 answers
24 views

Unable to move the cache: Access Denied (0x5) and Unable to create cache

I am quite inexperienced when it comes to coding. But, motivated by the availability of assistance by ChatGPT, I thought I'd give it a go with trying to make a quite simple game. I used Python as ...
John Kohan's user avatar
0 votes
0 answers
118 views

Relation of Mutex and CPU caches (and memory fences)

Suppose I have an application with multiple threads that need to access some shared data. I know that a mutex (Critical Section) can be used to ensure that at most one thread at a time can access the ...
William Cole's user avatar
0 votes
0 answers
11 views

Using DMA on PIC32MZ

I am using a PIC32MZ2048EFM100. I have a third party library to interface with a device via SPI, and I am trying to use DMA for the data transferring. The third party driver library needs a write and ...
HV16's user avatar
  • 39
0 votes
0 answers
27 views

Effect of non-temporal loads on future temporal loads on ARM processor

I was having the following issue, on an ARMv8 Cortex-A53 processor. I have two functions, one that writes to an array with no cache re-use (streaming_work), which I can feed to another function with ...
Mihir Shah's user avatar
0 votes
0 answers
13 views

Next.js App router cache revalidation problems

So guys, sorry for the dumb question. I am trying to get familiar with the new app router technology of Next.js. Point is, everything works perfectly fine on localhost and the tech is actually amazing ...
Scoten's user avatar
  • 1
0 votes
0 answers
20 views

No API request not called when closed tab restored

I'd like to call API request when I close browser tab and restore it by ctrl + shift + t key. What I use is Chrome browser and it works as expected when I set "Disable cache" at developer ...
user22976732's user avatar
0 votes
0 answers
31 views

Rails daily cache block not working in production

In a ruby on rails 6 app, I want to display a daily quote using a daily cache block. I tried two options: In controller: @quote_of_the_day = Rails.cache.fetch("daily_quote_#{Date.today}", ...
nico_lrx's user avatar
  • 655
1 vote
1 answer
56 views

Facing issues with Spring Boot's @Cacheable and @CachePut - cache is always empty

I'm trying to build a simple Java SB application that reads a text file with lines of data such as: {"id":"15887","customer_id":"528","load_amount":&...
Brandon Yip's user avatar
1 vote
0 answers
22 views

How to cache compiled webassembly modules?

I am creating a CAD web app using OpenCascade.js a port of the OpenCascade CAD library to JavaScript and WebAssembly via Emscripten. The wasm file is cached by browser but every time the page is ...
Jarkko's user avatar
  • 13
0 votes
0 answers
14 views

Auto caching pages every minute or hour in Next.js 13 using App Router

I'm building a football information site using Next.js: https://hangbongda.tv. While measuring the site's PageSpeed, I noticed that first test usually gives out very low score but the following tests ...
Ngoc Nguyen's user avatar
1 vote
0 answers
13 views

cordova app issues with page caching options

I have run into a problem with cordova page caching: .state('tab.clubs', { cache: true, url: '/clubs', params: tabParams, views: { 'tab-clubs': { templateUrl: '...
rolinger's user avatar
  • 2,892
0 votes
0 answers
22 views

Does it make sense to use Apollo Client for server side queries?

I'm currently working on an existing Next.js project that heavily relies on server-side rendering (SSR) and GraphQL (GQL). The project utilizes Apollo Client, but only for performing queries (client....
awm's user avatar
  • 1,150
0 votes
0 answers
11 views

GraphQL Schema Caching or Optimization Ideas

GraphQLSchema object will be used to process graphQL request. This object can be generated once and could be reused multiple times until any meta changes occurs. But my question is how can I cache ...
Bala's user avatar
  • 1
0 votes
0 answers
6 views

Contextual Caching with Redis

I'd like to find a caching library/client for Redis that can take a set of key-value pairs and a value to be cached and associated with those pairs, and for lookups and faults to be performed for any ...
Dustin Oprea's user avatar
  • 9,814
-1 votes
0 answers
9 views

how to solve header response code no-store, no-cache, must-revalidate?

facing issue in my responce header code no-store, no-cache, must-revalidate i have put script in htaccess file but still not resolved # Enable caching for certain file types <FilesMatch "\.(...
vendor list's user avatar
0 votes
0 answers
6 views

Caching Result Sets From Multiple Databases

I'm writing an application where a user can combine different physical tables from different databases (e.g. Oracle and SqlServer) to create one logical or "abstract" table. The abstract ...
Alfredo's user avatar
0 votes
1 answer
39 views

How to cleanup local gitlab runner cache

I wonder if a gitlab runner that runs in a shell and uses a local cache comes with a inbuilt mechanism from to clean up the cache. I use a cache in which dependencies are cached per branch. At some ...
WhoAmI's user avatar
  • 110
1 vote
0 answers
20 views

What is the best way to manage fetched data in NextJS 13, or above, using the App router?

Context: I developed a website using Next13 (now updated to 14), for an educational institution, where the user is presented to a landing page with a login form. After the login, the user can access ...
Guilherme Evangelista's user avatar
0 votes
1 answer
30 views

Testing SpringBoot @Cacheable functionality

I've implemented Cache for some DDBB access on a Spring Boot application. So far it's been working, but we want to ensure it's not disabled in the furture, so I want to add a JUnit test to assert it ...
GonAlonso's user avatar
0 votes
0 answers
19 views

How to implement caching in Strapi or implementing indexing on strapi

Where do I add the cache control headers in the strapi dashboard? Here is the link to my strapi forum question Unable to find that in the documentation. Please suggest a way to cache the strapi Rest ...
Nitin Dutta's user avatar
-1 votes
0 answers
39 views

Google Results always show cached pages, instead of the actual page

We are using a MERN stack for our application. Context on the problem: We use Prerender.io to cache our pages, cloudflare as a CDN and have around 10,000 pages. Unfortunately every page that i click ...
Per Obiora's user avatar
0 votes
0 answers
37 views

Clearing remote CD cache using Sitecore PowerShell

I am running publish of a Sitecore item version from PowerShell. In my specific case I am hiding a version, publish item, then making a version publishable again, and publish an item. The issue is ...
Sasha's user avatar
  • 486
0 votes
0 answers
15 views

Reuse docker cache from another machine

Assume I have a docker image, with layers A B C, built on computer1 with the following command build -t test_caching . And uploaded to my registry. I pull the image on computer2 (same architecture x86,...
n0tis's user avatar
  • 750
0 votes
0 answers
21 views

Symfony 6: Doctrine Retains Old Database Values After Switching – How to Disable Caching?

I have set up a configuration in my Symfony 6 application that uses multiple SQLite databases. To switch between databases, I change the symbolic link of the file , which works well except in the ...
CaDJoU's user avatar
  • 1
0 votes
1 answer
28 views

Using redux as a client side caching, but is there a scenario where too much caching backfires on performance?

I love how redux can be used for caching some data such that it does not need to be fetched again from the backend. But as I was doing it, I was wondering whether if there are any cons of doing it? ...
Saadman Islam Khan's user avatar
1 vote
1 answer
36 views

Implementing server-side caching middleware in tRPC 10

I'm working on a Next.js project and looking to implement in-memory caching for tRPC results, with each tRPC procedure being able to opt-in with a custom TTL. I think tRPC's middleware would be ...
swimmer's user avatar
  • 2,297
1 vote
0 answers
31 views

How to correctly reuse data in registers to compute faster the Pearson Correlation between vectors in a matrix

I am taking a course on parallel programming, and one of the topics is about reusing data inside the processor registers to perform as many computations as possible before needing to load more data ...
Lucas Piorno's user avatar
-1 votes
0 answers
36 views

Does anyone know the efficient way to search through encoded data in DB?

Problem definition: db data is encoded. What do I need: Quick search capabilities by encoded data What is the current approach: Read all encoded data into memory, decode it, and keep it in the cache. ...
Eugene Kukhol's user avatar
-1 votes
0 answers
24 views

most optimal approach for my django application regarding django cache

I am using DRF token based authentication with Django with custom user model and using PostgreSQL (in AWS RDS) as DB. Now everything is running on AWS EC2 t3.micro (as free tire available). And using ...
varun_k_21's user avatar
0 votes
0 answers
20 views

How to invalidate a particular key & data for Loading cache taking a key and data as Mono of List of String

I want to invalidate a particular key & data for cache (of type Loading Cache) defined as - Loading Cache<String, Mono<List< String >>> cachemem. Here we have single key with ...
A.G's user avatar
  • 1
1 vote
1 answer
61 views

Connecting Moodle LMS to a Redis server for Moodle caching

I am trying to connect a Moodle 3.9 website that's hosted on a Windows Server 2019 computer to a Redis instance running on a Red Hat Redis server so that I can configure Moodle to use Redis for ...
luisdev's user avatar
  • 557
0 votes
0 answers
16 views

npm cache clean --force not cleaning the directory

I am facing the issue that my build server runs out of disk space after a period of time due to the size of npms _cacache folder. After running npm cache clean --force and npm cache verify, the ...
himtim's user avatar
  • 210
0 votes
0 answers
15 views

Questions about Caffeine Caching -- Scalability, population, loading, etc

I've been reading up on Caffeine Cache and there are several things I don't understand. In what case would you use Asnyc loading? isnt it risky. like its possible that your cache is automatically ...
Manny's user avatar
  • 35
0 votes
0 answers
38 views

How to change browser's Memory Cache to Disk Cache

When I load a website created with ASP.NET Core in the browser, css files are saved in Disk Cache and js files are saved in Memory Cache. (I checked it in the network tab in developer mode.) Since ...
jrchs's user avatar
  • 1
0 votes
0 answers
62 views

How do I determine the currently available JVM heap size?

I can use freeMemory() to get unallocated heap size, but the actual available memory is usually larger if my program needs more space because of the uncollected garbage. I wonder if there's a way to ...
William's user avatar
  • 151
0 votes
1 answer
50 views

NextJS 13: Invalidating sidebar server component in chat app

Full minimal reproducable repo is here. This is a chat app with these routes: /chat layout.tsx - server component that houses Sidebar which is also a server component /chat/[id] - client component ...
wongz's user avatar
  • 3,797
0 votes
0 answers
22 views

revalidatePath() not working when it is deployed on Vercel

When I'm Running my code in localhost the revalidation is working fine. But when I hosted my project on Vercel the page is revalidating for a certain time but when I reload or refresh the previously ...
Nikhil Bolla's user avatar
2 votes
2 answers
96 views

GitHub Action `gha` Docker cache much slower than recreating the image

I set a GitHub actions to build and run tests on my Docker image. While building the Docker image, a rather heavy file (6Gb model from Huggingface) is being downloaded. (As a side note - I can ...
Yuval's user avatar
  • 3,217

1
2 3 4 5
763