Questions tagged [cache-expiration]

67 questions
30
votes
4 answers

Rails 4.0 expire_fragment/cache expiration not working

I have been trying to use the caching capabilities of rails, but I am unable to expire some cache fragment although they seem to expire. Using the 'Russian Doll Caching' as pointed out in the rails tutorial site, I am using this configuration <%…
Makis Tsantekidis
  • 2,698
  • 23
  • 38
19
votes
1 answer

my redis keys do not expire

My redis server does not delete keys when the time-to-live reaches 0. Here is a sample code: redis-cli >SET mykey "ismykey" >EXPIRE mykey 20 #check TTL >TTL mykey >(integer) 17 > ... >TTL mykey >(integer) -1 #mykey chould have expired: >EXISTS…
user1151446
  • 1,845
  • 3
  • 15
  • 22
15
votes
5 answers

Specifing Expiration Date For Static File's Caches

When i test my website for SpeedTest i'm seeing a lot of expiration not specified error.You can see at this page . I added this code to my .htaccess file ## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg…
Eray
  • 7,038
  • 16
  • 70
  • 120
6
votes
1 answer

Nginx Font Cashing

I'm desperately trying to figure out a way to set an expiry date on fonts in nginx to optimize on mobile. I'm interested for ttf fonts. I have mime.types as fallows: application/font-woff woff; application/vnd.ms-fontobject …
Allex Radu
  • 1,257
  • 13
  • 24
6
votes
1 answer

does JCache (JSR107) allow different expiry durations for different entries?

Assume I want to cache the results of expensive method calls. These cache entries should have a different expiry duration (aka TTL). Is this possible with JCache if the entries are put into the same Cache instance? I am aware that I can assign a…
Stefan Armbruster
  • 39,465
  • 6
  • 87
  • 97
6
votes
1 answer

Set Cache Redis Expiration to 1 year

How to set Redis Cache expiration to 1 year? I tried to set the long value on the xml configuration to : 31556952000 (1 year), but then it caught an exception that type Integer doesn't recognize the value as Integer. I tried to search at Google, and…
mrjimoy_05
  • 3,452
  • 9
  • 58
  • 95
4
votes
1 answer

Static_files vs Static_dir Cache expiration header in Python App Engine

I'm using Google App Engine 1.7.2 / Python 2.7 and am trying to add client caching of static files. When I specify static_dir in my app.yaml, the cache-control headers do not get set. - url: /static/images static_dir: static/images expiration:…
jchu
  • 685
  • 1
  • 5
  • 13
3
votes
1 answer

The following resources are missing a cache expiration How to set cache expiration for javascript file?

net application. I'm using external javascript files in my application. When I test my site with page speed tool from google it says that following resources are missing a cache expiration. also some of the images and css files. Can you give me…
George
  • 101
  • 1
  • 5
2
votes
2 answers

Rails 3 and Memcached - Intelligent caching without expiration

I am implementing caching into my Rails project via Memcached and particularly trying to cache side column blocks (most recent photos, blogs, etc), and currently I have them expiring the cache every 15 minutes or so. Which works, but if I can do it…
Shannon
  • 2,744
  • 3
  • 28
  • 37
2
votes
1 answer

Remove all the records from ets table having datestamp older than 10 seconds

I have an ets set table in an elixir app. I need to clean-up records which have their updated_at field older than 10 seconds. Is there a way I can set expiry or do it manually without iterating over all the records? I match records based on the…
Radio Active
  • 449
  • 6
  • 18
2
votes
1 answer

How to detect and refresh outdated data in React Native app with redux-persist

In a React Native app, usingRedux and Redux-Persist, what is the best way to identify what content needs to be updated? I have an app that does a few requests at startup. When I enabled redux-persist I started to avoid a request if it was already…
2
votes
1 answer

Android - does SharedPreference have a default expiration date?

Simply: all in title. Details: My objective is to store data in SharedPreference until a developer manually clear them. Then I am wondering either: 1) SharedPreference DOES has a default expiration date and therefore my android device will…
makeasy
  • 907
  • 1
  • 6
  • 15
2
votes
1 answer

web.config expire header does not work for png files

I am using this code in my web.config file at the root of my website to set an expiration header for my static content:
cmplieger
  • 7,155
  • 15
  • 55
  • 83
2
votes
1 answer

Rails caching techniques for a personalized news feed

In a scenario where there are users that have posts, and each user has a view representing a news feed (much like with a logged in Tumblr account), and each post overview has a link to the comments with a comment counter per post, what is the best…
railsuser400
  • 1,013
  • 1
  • 14
  • 31
2
votes
4 answers

Aging Objects in a Collection

I want to be able to age objects in a Collection. For example I could put strings in a HashSet. I would like timestamps associated of when the String was put in the HashSet. I would like String older than say time X to be dropped from the…
user1172468
  • 5,306
  • 6
  • 35
  • 62
1
2 3 4 5