tagged [caching]

How to cache data on server in asp.net mvc 4?

How to cache data on server in asp.net mvc 4? I am working on mvc4 web application. I want to cache some database queries results and views on server side. I used- but it caches the data on client sid...

Data cache vs session object in ASP.Net

Data cache vs session object in ASP.Net Should dynamic business objects for a site be stored in the users session or use ASP.Net caching (objects such as orders, profile information etc)? I have worke...

2 Nov at 14:16

Chrome - ERR_CACHE_MISS

Chrome - ERR_CACHE_MISS Does anybody know what the following Chrome error is? I have had a look online, but have not found a good answer yet. Somebody said it might be related to the latest Chrome upd...

22 Oct at 19:55

Caching in C#/.Net

Caching in C#/.Net I wanted to ask you what is the best approach to implement a cache in C#? Is there a possibility by using given .NET classes or something like that? Perhaps something like a diction...

22 Mar at 13:19

Accessing the ASP.NET Cache from a Separate Thread?

Accessing the ASP.NET Cache from a Separate Thread? Normally i have a static class that reads and writes to `HttpContext.Current.Cache` However since adding threading to my project, the threads all ge...

13 Mar at 00:50

Clear cache in SqlDataSource

Clear cache in SqlDataSource I need to manually clear the cache on a SqlDataSource with caching enabled. I've tried setting EnableChaching = false, and CacheDuration = 0 (as well as = 1) and none seem...

1 Jun at 20:13

How to call cURL without using server-side cache?

How to call cURL without using server-side cache? Is there a way to tell cURL command not to use server's side cache? e.g; I have this curl command: `curl -v www.example.com` How can I ask curl to sen...

12 Jun at 18:44

How do I request a file but not save it with Wget?

How do I request a file but not save it with Wget? I'm using Wget to make http requests to a fresh web server. I am doing this to warm the MySQL cache. I do not want to save the files after they are s...

13 Mar at 20:13

Is there a decorator to simply cache function return values?

Is there a decorator to simply cache function return values? Consider the following: I'm new, but I think the caching could be factored out into a decorator. Only I didn't find one like it ;) PS the r...

30 Apr at 14:20

Reference for the benefits of Caching

Reference for the benefits of Caching I am looking for a good reference (Paper, Blog, Book etc.) on how a good caching strategy could benefit - especially web based - applications. I know it is always...

8 Feb at 21:24

How to clear MemoryCache?

How to clear MemoryCache? I have created a cache using the MemoryCache class. I add some items to it but when I need to reload the cache I want to clear it first. What is the quickest way to do this? ...

14 Oct at 20:13

Caching of WebConfigurationManager.AppSettings?

Caching of WebConfigurationManager.AppSettings? I have a lot of requests that read my Web Config file Do `WebConfigurationManager.AppSettings` read from disk each time, or is it cached in memory? If i...

2 Oct at 21:1

C# HttpRuntime.Cache.Insert() Not holding cached value

C# HttpRuntime.Cache.Insert() Not holding cached value I'm trying to cache a price value using HttpRuntime.Cache.Insert(), but only appears to hold the value for a couple hours or something before cle...

24 Nov at 21:16

System.Runtime.Caching.MemoryCache vs HttpRuntime.Cache - are there any differences?

System.Runtime.Caching.MemoryCache vs HttpRuntime.Cache - are there any differences? I'm wondering if there are any differences between `MemoryCache` and `HttpRuntime.Cache`, which one is preferred in...

25 Mar at 16:24

Does ServiceStack Cache Internal Requests?

Does ServiceStack Cache Internal Requests? If I use the .ToOptimizedResult (documented [here](https://docs.servicestack.net/caching)) from a "bare" request like so: Will the performance of svcResult b...

16 Nov at 11:35

What is the best way to lock cache in asp.net?

What is the best way to lock cache in asp.net? I know in certain circumstances, such as long running processes, it is important to lock ASP.NET cache in order to avoid subsequent requests by another u...

2 Sep at 09:42

Should I use HttpRuntime.Cache?

Should I use HttpRuntime.Cache? I'm a beginner in asp.net, and have a few question of Cache: 1. HttpRuntime.Cache only provides severals methods and I think I'm able to implement these methods with Di...

11 Nov at 10:12

How to prevent caching of my Javascript file?

How to prevent caching of my Javascript file? I have a simple html: In test.js I changed a Javascript function, but my browser is caching this file. How to

26 Mar at 15:20

How to clear APC cache entries?

How to clear APC cache entries? I need to clear all APC cache entries when I deploy a new version of the site. APC.php has a button for clearing all opcode caches, but I don't see buttons for clearing...

26 May at 15:0

Cached Property: Easier way?

Cached Property: Easier way? I have a object with properties that are expensive to compute, so they are only calculated on first access and then cached. I

11 Jul at 20:54

.net MemoryCache - notify on item removed

.net MemoryCache - notify on item removed I'm using a .net Memory Cache with .NET 4.0 and c#, I want my application to be notified when an item is removed (so I can write that it has been removed to a...

8 Apr at 12:44

using singleton for caching

using singleton for caching I recently read that singleton is an anti-pattern and should not be used unless it is really needed. In all of our projects we use the singleton pattern to hold some cache ...

2 Nov at 21:10

How to invalidate cache data [OutputCache] from a Controller?

How to invalidate cache data [OutputCache] from a Controller? Using ASP.Net MVC 3 I have a Controller which output is being cached using attributes `[OutputCache]` I would like to know if it is possib...

22 Feb at 14:53

ASP.NET can't cache null value

ASP.NET can't cache null value Can anyone explain why you cannot insert a null object into the ASP.NET cache? ``` string exampleItem = null; HttpRuntime.Cache.Insert("EXAMPLE_KEY", example...

9 Jun at 02:43

Cache an HTTP 'Get' service response in AngularJS?

Cache an HTTP 'Get' service response in AngularJS? I want to be able to create a custom AngularJS service that makes an HTTP 'Get' request when its data object is empty and populates the data object o...

14 Dec at 12:43