Development: Windows 2003
Production :Windows 2003
ASP.NET 2.0 + C#
I want to disable the cache feature of all pages in dev but enable it in
production environments.
What's the solution?
If uses cacheProfiles in web.config then I need to deploy different
web.config files from dev
to production sites.
Thanks 4 2725
Well first let me say that in most cases, the web.config in a dev
environment and a production environment will need to be different.
Second.. what "cache feature" are you speaking of? Theres a number of
different contexts in which things are being cached, and you as the
developer have control of.
You may want to look into preprocessor directives if you're talking
about actually disabling calls to caching specific code that you've
implemented.
(You should also consider the fact that you would really need to be
able to build with caching in dev also, in cases where you are dealing
with and debugging logic related to caching.)
RedHair wrote:
Development: Windows 2003
Production :Windows 2003
ASP.NET 2.0 + C#
I want to disable the cache feature of all pages in dev but enable it in
production environments.
What's the solution?
If uses cacheProfiles in web.config then I need to deploy different
web.config files from dev
to production sites.
Thanks
Thanks.
(1) I keep one copy of web.config in VSS, and used it for dev/production and
each
developer's isolated dev environments. Instead, creating a external
reference config
file for each enviornment and doesn't add it to VSS, this will be easier to
manage
and configure all environments.
(2) The cache here means the Page and User Control caching
(3) I'd like have longer caching duration in production but shorter in dev
environment,
because the webform page will read xml file then render html content to
client, if we change
the webform file, there is no problem, but if the designer changes the xml
or xslt files, then
the output won't be changed until the caching is expired.
"kferron" <ke**********@gmail.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
Well first let me say that in most cases, the web.config in a dev
environment and a production environment will need to be different.
Second.. what "cache feature" are you speaking of? Theres a number of
different contexts in which things are being cached, and you as the
developer have control of.
You may want to look into preprocessor directives if you're talking
about actually disabling calls to caching specific code that you've
implemented.
(You should also consider the fact that you would really need to be
able to build with caching in dev also, in cases where you are dealing
with and debugging logic related to caching.)
RedHair wrote:
>Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C#
I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If uses cacheProfiles in web.config then I need to deploy different web.config files from dev to production sites.
Thanks
Your easiest solution is creating an xml file that acts as a dependency
to the cache. If you just touch the file it will invalidate the cache..
in development you can just make sure your pages are touching the
dependency where appropiate
RedHair wrote:
Thanks.
(1) I keep one copy of web.config in VSS, and used it for dev/production and
each
developer's isolated dev environments. Instead, creating a external
reference config
file for each enviornment and doesn't add it to VSS, this will be easier to
manage
and configure all environments.
(2) The cache here means the Page and User Control caching
(3) I'd like have longer caching duration in production but shorter in dev
environment,
because the webform page will read xml file then render html content to
client, if we change
the webform file, there is no problem, but if the designer changes the xml
or xslt files, then
the output won't be changed until the caching is expired.
"kferron" <ke**********@gmail.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
Well first let me say that in most cases, the web.config in a dev
environment and a production environment will need to be different.
Second.. what "cache feature" are you speaking of? Theres a number of
different contexts in which things are being cached, and you as the
developer have control of.
You may want to look into preprocessor directives if you're talking
about actually disabling calls to caching specific code that you've
implemented.
(You should also consider the fact that you would really need to be
able to build with caching in dev also, in cases where you are dealing
with and debugging logic related to caching.)
RedHair wrote:
Development: Windows 2003
Production :Windows 2003
ASP.NET 2.0 + C#
I want to disable the cache feature of all pages in dev but enable it in
production environments.
What's the solution?
If uses cacheProfiles in web.config then I need to deploy different
web.config files from dev
to production sites.
Thanks
Thank you!.
You mean that put the xml and xslt as data cache besides the webform
page cache? This will also increase the performance?
I had a performance testing via WAST,if a webform page is already added
the outputCache detective, then no matter the included user control(ascx)
is added the outputCache detective or not. the result is almost same .
"kferron" <ke**********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Your easiest solution is creating an xml file that acts as a dependency
to the cache. If you just touch the file it will invalidate the cache..
in development you can just make sure your pages are touching the
dependency where appropiate
RedHair wrote:
>Thanks. (1) I keep one copy of web.config in VSS, and used it for dev/production and each developer's isolated dev environments. Instead, creating a external reference config file for each enviornment and doesn't add it to VSS, this will be easier to manage and configure all environments. (2) The cache here means the Page and User Control caching (3) I'd like have longer caching duration in production but shorter in dev environment, because the webform page will read xml file then render html content to client, if we change the webform file, there is no problem, but if the designer changes the xml or xslt files, then the output won't be changed until the caching is expired.
"kferron" <ke**********@gmail.comwrote in message news:11**********************@f16g2000cwb.googleg roups.com...
Well first let me say that in most cases, the web.config in a dev
environment and a production environment will need to be different.
Second.. what "cache feature" are you speaking of? Theres a number of
different contexts in which things are being cached, and you as the
developer have control of.
You may want to look into preprocessor directives if you're talking
about actually disabling calls to caching specific code that you've
implemented.
(You should also consider the fact that you would really need to be
able to build with caching in dev also, in cases where you are dealing
with and debugging logic related to caching.)
RedHair wrote: Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C#
I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If uses cacheProfiles in web.config then I need to deploy different web.config files from dev to production sites.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Pastrovick |
last post by:
I mean any kind, browser, server..., ANY.
I have a script that erases and adds thumbs and the cache is a nightmare.
There is an XP folder tool options to enable thumbs cache.
I want to...
|
by: tottigang |
last post by:
Hi,
I have a tabstrip and I have some tabs in it. On the first page, all
the tabs are enabled, I need to disbale part of the tabs at a specific
point in the application and again enable them. I...
|
by: Kikoz |
last post by:
Hi all.
I keep my ViewState in server's cache. Works fine except when user leaves
the page opened for a long time (2 hours or so). Then if he/she tries to
post it back the server throws an...
|
by: Bob |
last post by:
Does anyone know how to disable javascript in the new Netscape 8 -- for
off line testing (like can be done readily with the current MSIE,
Firefox or Opera browsers) ?
When I try tools -> options...
|
by: Gary Jefferson |
last post by:
Suppose I have 3 modules that belong to a project, 'A', 'A.a' and 'B',
and each module has its own logger, created with:
module1logger = logging.getLogger('project.A')
and
module2logger =...
|
by: Phoe6 |
last post by:
Hi all,
I am trying to disable the NIC card (and other cards) enabled in my
machine to test diagnostics on that card.
I am trying to disable it programmatic using python. I checked python
wmi and...
|
by: anukedari |
last post by:
Hi,
Could any boby please help to get the answers for the following questions:
Is Apache always sends "X-Cache:MISS" header even when caching is off (disable)? or
Can we say that cache...
|
by: Pietro |
last post by:
Hi all,
First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
|
by: Deepan HTML |
last post by:
Hi All,
Currently i am working in a framed environment where i have
divided the window as 20% and 80% and the 20% is used for navigation
purpose and right frame for displaying the orignal content....
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |