Newest 'caching' Questions - Stack Overflow

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,...)

0
votes
0answers
5 views

Azure API management removing multiple cache values

I'm working with Azure's API management (APIM) caching and I got stuck on removing cache values. The default caching with cache-store and cache-lookup worked fine but we had to allow changing the ...
0
votes
0answers
10 views

How to convert ExoPlayer's MediaSource to a vanilla Java InputStream?

I want to use ExoPlayer's caching library, without actually playing media on ExoPlayer. (The videos will be rendered in WebView through HTML elements.) The goal is to implement a persistent cache so ...
0
votes
0answers
16 views

How to cache multiple version of site

I have a site with feed of user notes, and i want to show to users only top 100 notes (paginated by 10 per page). Every note has some tags (like subreddits on reddit), and every user can add some tags ...
-1
votes
0answers
11 views

Is there a way to manage data removal from URLCache?

I want to handle events (to get URLs) when URLCache removes objects on it's own. I use URLCache for file downloading in background. When cache capacity is almost full, URLCache removes some objects to ...
0
votes
2answers
32 views

Write-through cache Redis

I have been poundering on how to reliably implement a write-through caching mechanism to store realtime data. Basically what we need is this: Save data to Redis -> Save to database (...
0
votes
1answer
17 views

etag with Laravel?

I have a big JSON file accessible from myapp.org/api/something which is updated everyday at midnight. From this route I simply fetch some records from my database. But as I know the records in that ...
0
votes
0answers
12 views

Cache in clustered environment - Read Cache every microsecond and update it every 50 minutes

I have an engine that processes millions of requests so we are thinking on Saving the authtoken (OAuth2.0) in cache, the authtoken has a lifetime of 50 minutes so it needs to be updated, what is the ...
0
votes
0answers
13 views

Cache result of crawl to reduce number of requests in Python

I'm writing a script that grabs user-agents from whatismybrowser.com and returns a random user-agent. Since the user-agents rarely change, and because I want to reduce the number of requests, I ...
0
votes
0answers
20 views

Why is this GET request not being cached by the browser?

In my application I have a GET request to get images from an api endpoint. These are the headers returned by the server for the image. Access-Control-Allow-Origin: http://localhost:3001 Cache-...
0
votes
1answer
14 views

What is the timeout time for simple caching in AWS Lambda?

So I was finding caching solutions for my AWS Lambda functions and I find out something called 'Simple Caching'. It's fits perfectly for what I want since my data is not changed frequently. However ...
0
votes
1answer
16 views

what is the difference between byte addressable and word addressable

A processor has 64 bits address line, and has a 16-way set-associative cache. The memory is a word (i.e 2 bytes) addressable. The cache size is 2 MByte, and the line size is 64 bytes long. a. Show the ...
0
votes
1answer
12 views

Script doesn't change after deploying site on Firebase. Same error persists

I have a website that is hosted by Firebase on which I badly commented some lines of code. That code has been fixed and deployed but the problem persists. I changed an aspect of the HTML to see if ...
0
votes
0answers
27 views

Laravel API not reflecting changes made directly in database

I am having trouble with my API written with Laravel. Basically, I modify a value directly in the database used with Laravel, but it seems to get the original value(s) not the one that has been ...
0
votes
0answers
17 views

Dynamic script file remains out of date

I'm trying to debug a piece of MVC code, and when I hit a breakpoint, I see it is hit in a dynamic script file named VMnnn. I have tried everything, CTRL+F5, clear browser cache with menu, and cleared ...
0
votes
0answers
9 views

CAS server authentication fails for deleted user for few minutes

Not able to login for few minutes through CAS when user is deleted and created again with exactly same values. I have create one user with params like name, pwd, language, company. After activating ...
1
vote
0answers
16 views

How can I delete all the cache files stored in tmp folder when zend filesystem cache object is destroyed?

I am using zend filesystem cache and want to delete all the cache files created when cache object destroyed. I think there is a some config which I can set. Which I am not being able to find? What is ...
0
votes
1answer
19 views

Best approach for PHP Web Service with multiple clients & preventing cache stampede

I have an existing PHP webservice that is used to do a complex calculation that takes about 10 seconds to run. The particular client usage pattern is that multiple clients will almost always request ...
0
votes
0answers
8 views

I'm trying to add headers: referer to cache context headers, but it doesn't work for anonymous users

I want to send 403 error on referer from another URL. I added cache context header: referer and works fine for admin but not for anonymous.I'm doing it with access checker. $header = $this->...
0
votes
0answers
12 views

Caching: user generated content

In my application i am allowing the user to uplaod some files and the application allows them to view it. The image endpoints are behind authentication, and they are not accessible directly from a ...
0
votes
0answers
16 views

How to check if HTML has been cached?

I need to verify if HTML page has been cached. Code pasted below is compiling, but I have no idea how to check if actually this page has been cached. Could you please provide some tips how to make ...
0
votes
0answers
7 views

In Redis, is it possible to discard HDD backups of specific keys after a crash?

I have a future problem I foresee, that I'd like to try to solve. Lets say I save specific values, that very rarely change, to a Redis database. For example, lets say {obscure_setting:"Some setting"...
0
votes
1answer
18 views

Trying to delete local App data, made to work with any computer

Made a powershell script to go into AppData\Default\Cache directory and clear it, and it works fine for the system I made it for. However this will be used with hundreds of different computers and I ...
0
votes
1answer
13 views

AlamoFire 5.0 force permanent caching

I am using AlamoFire 5.0 and want to force permanent cache storage of data fetched from urls (.obj files, .png images etc.). Is there some way to ignore/intercept the HTTP headers sent by the server ...
-2
votes
0answers
25 views

Is there a way to tell selenium to cache sites?

I need to do some scraping; I have a list urls I need to go to and I need to do some calculation that takes about a second per url and then advance to the next url. Is there a way, in advance to tell ...
0
votes
1answer
25 views

Laravel load middleware in routes under condition

I have a route files for my api and im using this package to cache the whole response. routes/api.php <?php Route::get('/types', 'TypeController@indexType')->middleware('cacheResponse:600'); ...
0
votes
0answers
17 views

How can I get the CacheItemPriority of an HttpRuntime.Cache object?

Is it possible to get the CacheItemPriority of an HttpRuntime.Cache object? If so, what would be the best approach?
2
votes
0answers
19 views

How do not cache a dynamic routes

I try to add my dynamic route like a service. routes.yml: static_pages: resource: 'pages.dynamic_routing_provider:getRoutes' type: service Service.php class DynamicRoutingProvider { ...
-1
votes
0answers
26 views

Download image with specified size in flutter

I would like to download an image with a specified size, In my case, I have very big images around 2450X1440 resolution. For Grid and list, I don't need a full size, I would like to load thumbnail of ...
1
vote
1answer
21 views

Implement cache in tibco bw

Implement cache in TIBCO BW I need to implement cache/memory in TIBCO BW. Contents of this cache should be available across BW projects. What I am trying to do is, when I receive a message ...
0
votes
1answer
12 views

How to fix page to be shown correct in google cache

Hay, I have problem with google cache. I want the homepage of my site in google cache will be shown correct and not broken, like the source. this is the source: https://www.fnx.co.il. the cahed page ...
-1
votes
0answers
14 views

How to connect to Twemproxy from Symfony/cache library?

We use Twemproxy to connect to Redis and Memcached. Wondering if there is a way to connect to twemproxy using existing cache adapters in symfony/cache library. If so, could you please provide some ...
0
votes
0answers
9 views

how to use callback function in laravel queue

I need to set the cache in queue, in my listing I am getting the product category counts from cache, cache will reset every 24 hours but I have 6 million plus products So in every 24 hours the page ...
0
votes
1answer
20 views

Caching issue js files using requirejs

I keep having issues with the cached js files, which causes the user to not have the latest js and the browser to give js errors on files it can't find that should be included with requirejs. My ...
0
votes
1answer
11 views

Etag: weak vs strong example

I have been reading about Etags, and I understand that there are 2 ways of generating an Etag, weak and strong. Weak Etags are computationally easier to generate than strong ones. I have also come to ...
1
vote
1answer
19 views

Can I set a TTL for @Cacheable by key?

I use @Cacheable(name = "rates", key = "#car.name") Can I set up a TTL for this cache? and the TTL is by the car.name? for example I want to set name = "rates" TTL 60 secs running the java: ...
0
votes
0answers
6 views

Will RSS-links in email be broken after flushing RSS cache?

I have a Sendy email template (sendy.co) and I want to import a RSS feed with WP blog posts (flagged as featured in admin). After sending the newsletter from Sendy with these blog posts (including ...
-1
votes
0answers
23 views

How to Multiply Matrices Using Cache blocking

I have an assignment where I have to write a function that multiplies matrices using cache blocking(different block size for each dimension n,m,l) and loop unrolling (Matrix A: nxl, Matrix B: lxm), so ...
1
vote
0answers
13 views

Benchmarking instruction cache impact

When a sub-routine needs to be benchmarked, it's relatively easy to create a workload for it, and then just loop over this workload to extract statistics. It will provide enough information to measure ...
1
vote
2answers
45 views

Laravel - Paginate with mysql Rand() and Seed

I am so close to giving up because I am stuck on this for quite a long time now. I hope you can help me out. The Goal I want to return a paginated and cached, query in an infinite scroll. I'm using ...
1
vote
0answers
16 views

How to sync local cache (RLocalCachedMap instance) between multiple JVM's in redisson?

I am trying to implement RLocalCachedMap in Redisson and that is easy. What I am concerned about is how the local cache will be synced between multiple JVM instances. Is it done automatically somehow ...
0
votes
0answers
29 views

Too many connections from this Laravel application / ImageCache

On my website made with Laravel, since I use ImageCache, I encounters some connections problems from my mutualised server : it says "Too many connections from this host" (see exact log below). There ...
0
votes
0answers
31 views

CacheName~lock happening in Redis server

I have a DAO class caching the date @Cacheable("dateCache") public Date getSystemTime() { String query = "SELECT f_sys_date FROM DUAL"; return (Date) this....
0
votes
0answers
12 views

Clear cache to read the last datafile with rdrop2

I built a shinyapp with a form which create new line in a dataframe (and display it in another tab) each time the user press the "valid" button after filling the form. When a new line is created, I ...
1
vote
1answer
21 views

How to fetch Updated values from Ignite Cache?

I have an ignite cache, in which data is continuously inserting. Is there any method for getting only updated values from the cache? I need to insert this data into Hive without duplication.
8
votes
1answer
172 views

Inconsistency when benchmarking two contiguous measurements

I was benchmarking a function and I see that some iteration are slower than other. After some tests I tried to benchmark two contiguous measurements and I still got some weird results. The code is ...
0
votes
0answers
12 views

Table management strategy (like cache management) in SQLite database

I have a SQLite table : "KEY(ID) TEXT(STRING) KEY(RESULT) KEY(ACCESS TIME) KEY(TIME STAMP) KEY(NUM_ACCESS)" I want to limit the db table size to a certain limit, for which i need to do some table ...
0
votes
1answer
16 views

I do not understand this paragraph explaining web browser caching

I was reading through some HTTP documentation and found this paragraph to be very confusing: "The more we use cached resources, the better the responsiveness and the performance of a Web site will ...
0
votes
0answers
41 views

Old version of index.php being served

After updating one of my clients sites, when the page is loaded the css is missing. after further investigation i realized im getting the most current css files but an old index.php file. I tried ...
0
votes
0answers
6 views

Rails.cache.clear throws an error in production ENOTEMPTY

When I go to clear cache in production I get this error: Rails.cache.clear Errno::ENOTEMPTY: Directory not empty - /var/www/sites/motor-service.com/releases/20190524101858/tmp/cache/710 Rails 4.0, ...
0
votes
0answers
29 views

How to store non-typed JSONs in Redis with Spring Boot 2 CacheManager

I'm using Redis as a cache storage in a Spring Boot 2 application. I'm using the @Cacheable annotation in some methods and I want to store the data in Redis as non-typed JSONs. With current my ...