Questions tagged [caching]

15041 questions
0

votes
0

answer
3

Views

Show Local Images and Server Images ( with Caching) in Flutter

I am trying to show the image in a Widget picked from Image-Gallery as well as from the Network loaded images. CachedNetworkImage is working fine with Network-images but when I try to pass selected image from gallery it's not working. CachedNetworkImage( imageUrl: url, placeholder: (context, url)...
user532445
0

votes
0

answer
2

Views

Browser cache of index.html file

I have a CRM app. It's created in angular so when I change something in scripts it creates new index.html file with reference to new js files (with different hashes). But some browsers seem to cache index.html file, so clients still have old version. I have those headers: Cache-Control => max-age=0,...
piernik
1

votes
1

answer
131

Views

Caffeine versus Guava cache

According to these micro benchmarks it turns out that Caffeine is a way faster than Guava cache in both read and write operations. From the API perspective they both seems quite similar. What is the secret of Caffeine implementation? How it differs from the Guava Cache? Am I right that in case of ti...
Developer87
0

votes
0

answer
3

Views

How to manually lock redis cache by key?

I have multiple workers. Each of them can process some command. This command takes data from db and update it. Commands workers take from the queue. In queue can appear same commands for same object. If this happens and 2 workers take same commands at same time, some of them can work with not latest...
demo
1

votes
2

answer
2.1k

Views

how to persist an object in android?

I have read some post regarding persistence methods in android but it still unclear to me how we can persist an object? please relate to session-persistence and application-lifetime presistence 1) persist an object as long as the app is installed => i guess it means using SQlite or sharePreferences....
Elad Benda
0

votes
0

answer
17

Views

creating cache for faster access of list of dicts in python

I am writing a python program for getting the ipaddress of the website by using socket module. Here, i have a list of dicts with n number of websites and numbers. Here's some sample data: d = [{'website': 'www.google.com', 'n': 'n1'}, {'website': 'www.yahoo.com', 'n': 'n2'}, {'website': 'www.bing.c...
Smack Alpha
0

votes
0

answer
4

Views

How to fix “touch(): Utime failed: Operation not permitted” on saving cache with symfony?

I want to caching some response with symfony\cache. But I've got some error with my cache and sometime with the symfony default cache. Configuration : Debian 9 on vagrant (with vagrant bindfs link to source code directory) with Apache2 php 7.2 / symfony 4.1 apcu enabled For caching my response I us...
SonOfWinter
1

votes
1

answer
34

Views

How to get RequestCachePolicy to respect max-age

I am confused about how time-based cache policies work when using HttpWebRequest. I am calling a GET method of a WebAPI that returns JSON content together with a Cache-Control header similar to: Cache-Control: public, max-age=60 The intention is that the content should be considered to be stale afte...
Joe
0

votes
0

answer
12

Views

Why is pygame trying to play a sound that doesn't exist?

I'm developing a game and using the pygame module to run sound. At one point, I included two files, Monster.ogg and woodfrog.ogg, as sound files for various classes. Those files are both absent now, unreferenced in the code and deleted in absolute terms. For some reason, pygame.mixer.Sound keeps ref...
Jake
1

votes
3

answer
87

Views

How to save a matrix in C++ in a non-linear way

I have to program an optimized multi-thread implementation of the Levenshtein distance problem. It can be computed using dynamic programming with a matrix, the wikipedia page on Levenshtein distance covers that well enough. Now, I can compute diagonal elements concurrently. That is all alright. My...
Jan Kolombo
1

votes
0

answer
130

Views

Laravel - How can I authenticate users from cached user object in Laravel? (using JWT)

I'm using the Laravel Tymon package for JWT user authentication. I'm also caching every user object after a new user is created and saved in the database so that I can load the data faster on selects. The authenticate() method in the Tymon package takes the token as an input and uses the user model...
Ryan
1

votes
0

answer
62

Views

Weird Scenario in Firebase Auth

I'm working on a Android app which use Firebase to authenticate users. I have faced the following scenario which looks like bit weird to me. I have logged in to my testing app few weeks ago using test account [email protected] After that I used different accounts but not that [email protected] account. After few new...
Chrishan
1

votes
1

answer
398

Views

Fetch and cache a JSON file

What is the best way to fetch a JSON file and cache this on the server? I want to get a JSON file from a remote source and cache it (for example for 24 hours) so it costs less internet capacity :) class Json { public $url; public $hash; public function LoadJson($url) { // Exist function if (file_exi...
1

votes
0

answer
39

Views

TinyMCE triggers a script that I never included: It's pretty interesting, isn't it?

Ok, beforehand I apologize for my English and theoretical mistakes, but I'm not a native speaker and neither am I a professional. I'm just a student and my level is very basic. The problem I'm dealing with, that I consider crazy, but I can't deny is really interesting is that TinyMCE 4 triggers a sc...
JDoeiseverywhere
2

votes
0

answer
11

Views

Service worker doesn't work on offline mode in chrome

I'm new on the world of angular /Angular CLI and i begin with service worker I try to use this tutorial : https://angular.io/guide/service-worker-getting-started And with another tutorial for create an app with angularCli who have all files for the service worker 1) for the exemple my app name is '...
Yoann Basquin
1

votes
0

answer
74

Views

PHP - File cache SQL queries in Google App Engine

I'm new at hosting with Google App Engine and haven't got my file caches to work yet any is therefore running a bunch of SQL queries that at least on my last dedicated server made more sense to have file cached. My questions are: Is it worth file caching on Google App Engine or is there some disadva...
Rasmus Lindström
1

votes
0

answer
504

Views

How do I compare local and remote asset bundle versions without actually downloading the asset bundle?

What I'm trying to do I'm working on a sort of portal to showcase several of the projects my organization has made in Unity. To keep it flexible and light, I've designed an architecture using asset bundles: When the user downloads the portal, all they download is a bootstrap scene that loads in the...
David Rodriguez
1

votes
0

answer
26

Views

Caching git diff results

I have a fairly large git repository on which I need to run repeated git diff commands. For example I need the output of git diff --shortstat commit1 commit2 as well as that of git diff --diff-filter=ad --shortstat commit1 commit2. Is there a way of either caching the diff results in the background...
ARF
1

votes
0

answer
208

Views

nginx reverse proxy with cache and gzip_static on

I need help to setup nginx reverse with gzip_statice to serve precompressed gzipped content to browser with gzip header request where the backend does not support gzip_static I understand the vhost block for nginx but what I need help is when browser request for a file https://www.domain.dom/file.tx...
user1492502
1

votes
0

answer
120

Views

Python - Flask API service - Loop through API data sources, cache, and give rapid feedback on call

I'm trying to develop an API service that after collecting data continuously from different sources, elaborate that data, and keep that information ready from being requested from another service. I'm using Flask and it's working on top of a single thread. My problem is about the slowlines accessin...
entalpia
1

votes
0

answer
304

Views

Ionic 2/3, data keep in cache device when database is update

i have a couple of variables declared in the controller ('date' and 'clientes' ). They are updated through http and show them with ngModel. But every time I update some data in the database, this data is not updated in the device until I delete the cache of the application. Why is this happening? Is...
Alejandro Castañeda
1

votes
2

answer
4.8k

Views

How to cache images in Glide

When I use glide, some images doesn't loads. How can I store it in the cache, or anywhere, to when I'll use the app all my images loads. Example picture of my problem: Picture My code: .java home_ib7_monster_truck = (ImageButton)findViewById(R.id.home_ib7_monster_truck); Glide.with(Home.this) .load...
Katona Tamas
1

votes
1

answer
53

Views

Is it possible to save and load JavaScript or Stylesheet (CSS) to/from browser's local db?

We're trying to maximize the performance of our web architecture. We're developing a special way of creating Angular applications, that is based on loading UMD files in old web school by adding them to the head section of a web page: Of course one barrier to this architecture is the amount of bytes...
1

votes
0

answer
25

Views

cause of app cache deletion

I have a quick question. What can be the cause of the cache deletion of the app? Let's just say I'm receiving a notification and opening the app and all my cache removed, I couldn't even see saved accounts and application acts like it is installed the first time.
Canberk Ozcelik
1

votes
0

answer
278

Views

Angular 4 app - Client Caching for large data

Question: What is the best approach for implementing client caching of huge data. I am using Angular4 with Asp.net Web API2. Problem: I am developing an web analytical tool (support mobile browsers as well) which generates echart metrics based on JSON data returned from Asp.net web api2. Web page ha...
Vivek G
1

votes
0

answer
169

Views

Chrome Cache issue - Angularjs Web application

I am developing an angularjs web application and facing some cache related issues as follows: When any changes are made in the angularjs code and pushed to the server, the changes don't reflect in the application unless the users clears cache. This is because my html files are cached. I cannot disab...
Z.T
1

votes
1

answer
106

Views

I am unable to store data using ehcache

I am new to caching world and I am trying to implement cache. I want to cache the output of a method which is calling a web service for some data in order to avoid calling the web service again and again for same data. But my cache is not working and my method is calling the web service again and ag...
charchita shukla
1

votes
0

answer
22

Views

What is the difference between HTTP cache and HTML5 Application Cache (aka Appcache)?

While looking into HTTP requests and responses, we often come across the Cache-Control header which is related to HTTP Cache. And we also have a HTML5 Application cache indicated by the manifest file which stores the cache in the browser itself. How are these 2 types of cache different? Where do b...
Gautam Jain
1

votes
0

answer
361

Views

Second level cache in JPA using Entity manager for native queries as well as for JPQL

I have implemented second level cache using jpa through EntityManager and using java configuration for it. I referred the following link http://www.baeldung.com/hibernate-second-level-cache. I am not getting any error but also my Entity’s Data Is not Cached. Please help:) I have provided all the r...
Pooja
1

votes
0

answer
81

Views

Odd Caching Behavior

We're currently deploying a React application that is bundled with Webpack. Our Webpack config is below. We are experiencing some - to me - very odd caching behavior; after each deploy our users are being forced to do a hard refresh. If a hard refresh is not done, the index.html template is shown an...
pmilla1606
1

votes
0

answer
346

Views

Cache is not getting updated in Spring Boot

I'm using Spring Boot @CachePut and @Cacheable annotations to cache the data. @CachePut(value = 'cache1', key = '#clientId') public Map buildCache(Long clientId){ Map cacheMap= new HashMap(); //get values from remote db and store them in the local db as well as cache return cacheMap; } @Cacheable(va...
Manisha
1

votes
0

answer
18

Views

laravel Cache Queryies with conditions

i am trying to load a cached value by providing a segment of it's key and i can't find out how...i want something like SQL syntax Example here but with laravel caching system: select * where key like '%{segment of the key }%' PS: i am using file drive
Omar Ajmi
1

votes
2

answer
323

Views

Tomcat In-Memory Caching - replication on Cluster

I have a question on Tomcat clustering. I have a java application in which we have implemented in-memory caching. So basically when Tomcat starts, it loads a few objects from the database. These objects are stored in the tomcat memory like static objects. so whenever we update something from the app...
Aman Mohammed
1

votes
0

answer
263

Views

Intermittent Issue in Spring Boot Cannot get Jedis connection; nested exception is : Could not get a resource from the pool

I have a springboot application v1.5.9.RELEASE, I am using a interceptor to check some details against a redis cache via the @Cacheable annotation, I am getting this below exception intermittenly, I am using Redis as caching mechanism in my Spring Boot application , I have used a @Cacheable annotati...
rafrul
1

votes
1

answer
118

Views

Oracle Coherence Cache Clustering

We have two web-application that use two different version of Embedded Coherence Cache: Application 1 with Coherence 3.7.1 (run in JDK7 environment with Weblogic Server 12.1.2) Application 2 with Coherence 12.2.1 (run in JDK8 environment with Weblogic Server 12.2.1) each application deployed in dif...
saeid rastak
1

votes
0

answer
48

Views

Caching external responses originated from google cloud functions

I'm using google cloud functions as my backend server. Some of my functions are generating requests to external API's. I need to cache the responses, and I wonder of the recommended way to do that in the cloudFunctions space. (Is there any google cloud service dedicated to this need?) any tips guys...
ogrb
1

votes
1

answer
130

Views

How to add headers to assets for cache validation?

I've been googling and testing stuff for the past couple of days but unfortunately I cant find a solution for my problem... I am working on a Symfony 2 application that uses a Service-Worker to cache a bunch of assets. For whatever reason I can't seem to add headers like ETag or Expires to the asset...
Richard Avalos
1

votes
1

answer
191

Views

Failed to load ApplicationContext when using @Cacheable annotation

I'm integrating Caching into my web application but for some reason Application Context failed to load when adding the @Cacheable annotation. I have been trying to solve the issue for two days now, your help is really appreciated! app.context.xml EhCache.xml Method that is being cached public class...
Jay
1

votes
0

answer
68

Views

Make a cache system for Express JS app connect with API

[level english = very bad (from France...)] I have a simple app with node.js and epress.js This app use de module 'igdb-api-node' for connecting with the igdb api (https://www.igdb.com/api) I use this code for get a game whith keyword : exports.findGameByKeyWord = function(req, res) { return client...
Sofiane Hadjadj
1

votes
0

answer
37

Views

How do I flush custom URL cache in my browser?

We have an app that uses a custom URL scheme like myapp://foo to authorize via a third party app and then reopen the app fully authenticated. Now we also use the same custom URL scheme myapp:// for another app, but when I authenticate with the other app, it will open the old app. Apparently this is...
tuexss

View additional questions