c# - Need advice in implementing ASP.NET custom output cache -


my website similar blog page content not change frequently. decided to use page output cache.

but when turned on output cache every page , set cache duration 1 hour, web-hosting provided suspended site using extensive system memory. after re-set duration 2 mins, times i'm getting database connection timeout errors.

for better performance, anyway need caching, not cache in memory. came following idea. please advice whether best approach or have better solutions this?

i want write http module intercept requests. if cache version specific request not there, writes page response (using filters write) disk file, otherwise sends file response.

target framework 2.0

if you're in asp.net 4.0, don't need write httpmodule - output caching provider-based, can write new provider , plug in. gunnar peipman has great blog here on writing file-based output cache provider.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -