Questions tagged [cache-dependency]

29 questions
1
vote
0 answers

FATAL: System.Web.HttpException (0x80070057): Invalid file name for file monitoring: ''

I get the following issue : FATAL: System.Web.HttpException (0x80070057): Invalid file name for file monitoring: ''. Common reasons for failure include: - The filename is not a valid Win32 file name. - The filename is not an absolute path. - The…
1
vote
1 answer

VirtualPathProvider on IIS 6 does not handle file stream caching correctly

I am working on a framework where .aspx and .master pages are embedded in an assembly, using VirtualPathProvider to route a url to a specific embedded resource. Sample url: /_framework.aspx/mypage.aspx (which uses…
1
vote
0 answers

Using .NET MVC 4.0 VirtualPathProviders in a web farm scenario

We have an application that relies heavily on a virtual file system that extends the .NET System.Web.Hosting.VirtualPathProvider architecture. We use chaining to search through... (A)contentresourceprovider (extends…
1
vote
3 answers

Why does stored procedure invalidate SQL Cache Dependency?

After many hours, I finally realize that I am working correctly with the Cache object in my ASP.NET application but my stored procedures stops it from working correctly. This stored procedure works correctly: CREATE PROCEDURE…
0
votes
1 answer

why can a CacheDependency be invalid right after creating it! (ASP.NET-MVC3)

Whenever I make a CacheDependency in a testbed, it works fine. If I write var dep = new CacheDependency(null, new string[] { "dep" }); dep will be a new CacheDependency, with the properties: HasChanged = false, UtcLastModified = the current…
vinczemarton
  • 7,756
  • 6
  • 54
  • 86
0
votes
1 answer

Content Cache dependency in Kentico V9

I want to update cached content of one custom table when another custom table item is updated. Let's say I have two Custom Tables: Product and Order. There are List and Edit pages for both Product and Order. In DB there is a trigger on Product that…
ReshDev
  • 83
  • 8
0
votes
1 answer

Kentico 12 Caching in different environments

MVC C# project with a Kentico 12 back-end (no drag-n-drop web parts just using it as back end CMS, with calls to Kentico APIs for data). Basically, we're having a caching issue that only occurs on one of our environments (PROD). I believe this is…
RichieMN
  • 905
  • 1
  • 12
  • 33
0
votes
1 answer

How do I cache a composite server control?

How would I use the system caching object, HttpContext.Current.Cache to store a custom server control in the cache? Currently I have code that looks like this: string adxkey = string.Format("adxdependency:document:{0}",…
0
votes
1 answer

yii2 replacing dependancy of yii 1.x

I want to replace the dependancy from yii 1.x to yii 2.x. I am using dependancy as follows: $dependency = new CDbCacheDependency('SELECT count(*) FROM category'); $categoryList = Category::model()->cache(CACHE_TIMEOUT,$dependency)->findAll(…
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

c# cachedependency dispose pattern

I am adding objects of cache dependency to an array of such AggregateCacheDependency. when I finish with the array I dispose it. my question is do I have to dispose just the array containing the objects or do I have to dispose of the objects them…
Gidi
  • 181
  • 1
  • 10
0
votes
1 answer

Creating a custom cachedependency for documents in ravendb

I'm trying to create cache dependency to expire some documents i'm caching using ASP.NET Cache. I came up with this: public class DocumentCacheDependency : CacheDependency { private readonly IDisposable _Subscription; public…
Tom Allard
  • 61
  • 7
0
votes
3 answers

Cache and SqlCacheDependency (ASP.NET MVC)

We need to return subset of records and for that we use the following command: using (SqlCommand command = new SqlCommand( "SELECT ID, Name, Flag, IsDefault FROM (SELECT ROW_NUMBER() OVER (ORDER BY @OrderBy DESC) as Row, ID,…
Fabio Milheiro
  • 8,100
  • 17
  • 57
  • 96
0
votes
1 answer

Change tracking -- simplest scenario

I am coding in ASP.NET C# 4. The database is SQL Server 2012. I have a table that has 2000 rows and 10 columns. I want to load this table in memory and if the table is updated/inserted in any way, I want to refresh the in-memory copy from the DB. I…
user1044169
  • 2,686
  • 6
  • 35
  • 64
0
votes
1 answer

Can I use SQL cache dependency with SubSonic?

I want to use SQL cache dependency with SubSonic. How can I do this?
Jalpesh Vadgama
  • 13,653
  • 19
  • 72
  • 94
1
2