Questions tagged [cache-expiration]
67 questions
1
vote
0 answers
RUBY ON RAILS PRODUCTION environment, CANNOT CLEAR CACHE
Is there a way to clear cache in production environment
using the default cache of rails
I tried using caches_action :index, :expires_in => 1.minute
but it only works on development environment but not in production

endyey Es
- 479
- 1
- 5
- 17
1
vote
1 answer
Ruby - How to refresh the Fragment cache after being expired in Rails
I have an Ruby on Rails application where fragment caching is used and using memcached for storing the data.Also i have a sweeper which expires the cache when changes are made to the model.
index.html.erb
<% cache 'recent_albums' do %>
contents to…

user3428294
- 77
- 10
1
vote
1 answer
ExpireAfterWrite does not seem to work
I am trying to use Google's Guava Cache and I am just testing it with expireAfterWrite with 1 minute intervals. In the application I am working on there are hundreds of users. So my understanding is that when the first person accesses the cache, we…

Johnathan Au
- 5,244
- 18
- 70
- 128
1
vote
1 answer
Fragment caching is not working in rails 3
I am using rails 3 and fragment cache.
Here is my controller code(show method):
if request.format == 'pdf'
render pdf: @design.slug, layout: 'application'
else
**expire_fragment('design_printed_by')**
…

Dipali Nagrale
- 510
- 5
- 17
1
vote
1 answer
AppEngine Memcache expiration policies
I was expecting the following AppEngine code:
MemcacheService memcache = MemcacheServiceFactory.getMemcacheService();
memcache.put("Foo", "Bar", Expiration.onDate(new…

Markus A.
- 12,349
- 8
- 52
- 116
1
vote
1 answer
MemoryCache in System.Runtime.Caching: items don't expire
I currently try to insert items into the MemoryCache.Default instance, which works. But the items don't expire! Polling interval is on default setting 2 minutes, no specific settings have been done for MemoryCache.
Add item routine is like…

Erik Hart
- 1,114
- 1
- 13
- 28
1
vote
1 answer
Rails fragment caching "expires_in" value is always recalculated
Does anyone know why rails seems to recalculate the value of "expires_in" each time a cached fragment is read?
EXAMPLE
cache("usecase_#{usecase.id}", :expires_in => "#{usecase.minutesToNextRun}".to_i.minutes) do
some code
end
If I check the…

tiekuhn
- 15
- 4
1
vote
2 answers
Is there any way to set expiry headers in asp.net without making changes in IIS 6 Configuration Manager
I Need To Set Expiry Headers In my Asp.net code.. Is there any way through which I Can Add expiry Headers through code.?
I Have tried adding the following code in my asp page
<% System.Web.HttpContext.Current.Response.AddHeader(…

Crazy Programmer
- 196
- 1
- 3
- 18
1
vote
0 answers
how to set up both httpexpires and cachecontrol headers web.config
Earlier I was asking the question how to set up both httpexpires and cachecontrol headers
I think I kind of found the answer

Sergino
- 10,128
- 30
- 98
- 159
1
vote
1 answer
Add Time to live to property to my cache

iuser
- 209
- 1
- 6
- 18
0
votes
9 answers
How to force update of design changes to clients using xPages?
I am bulding a webpage using xPages and I am making constant changes to script and design, this include both server and client javascript , stylesheet and image changes.
Each time I change a javascript or stylesheet I want to see my changes in the…

Thomas Adrian
- 3,543
- 6
- 32
- 62
0
votes
0 answers
How to get the expiration times of cache values properly in Django?
I set 3 cache values with timeout and get the expiration times with cache._expire_info in LocMemCache as shown below:
from django.core.cache import cache
cache.set("name", "John", timeout=60)
cache.set("age", 36, timeout=120)
cache.set("gender",…

Super Kai - Kazuya Ito
- 22,221
- 10
- 124
- 129
0
votes
0 answers
Go TTL expiration checker always returns false
I have this TTL expiration checker that takes creationDate string & ttl int (seconds):
package utils
import ...
func IsExpired(creationDate string, ttl int) (bool, error) {
createdAt, err := time.Parse("2006-01-02 15:04:05", creationDate)
…

Dev-Siri
- 592
- 5
- 22
0
votes
1 answer
Expiration header for all files in a specific folder (.htaccess)
For all files, except pdf, in a specific directory as well as its sub-directories on the server, I would like to set the expiration header to 10 hours. How can I do this in the .htaccess file?
…

Nick
- 3,496
- 7
- 42
- 96
0
votes
0 answers
Cache expires on Redis before the TTL
I am using Redis in my application. I am caching the access token on redis with the expiration time as 2 weeks(1209600 seconds). But the token get delete in within 5-6 minutes.
I have monitored the same on redis terminal with TTL command. After…

Om Prakash
- 1
- 2