|
|
|
|
Software Development Kit
SDK.Net v1.0.6.4,
SDK.Web v1.0.4.1
|
|
|
Web.Config should include the following variables in order for EasyCache to run correctly,
If no variables added then the module will not run and EasyCacheActive will be set to "false".
Add the following entries in the "<appSettings>" section of "<configuration>"
<!-- MicroMighty SDK : EasyEmailSender Variables -->
<add key="EasyCacheActive" value="true" />
<add key="EasyCacheCommaSeparatedCacheReceiverURLsOfAllowedMachines" value="" />
Make sure that IIS is configured to allow cache objects to last enough time based on your needs
Internet Information Services (IIS) -> Application Pools -> Your_Application_Pool -> Advanced Settings
-
Set the "Process Model" -> Idle Time-out to : 43200 minutes
-
Set the "Recycling" -> Regular Time Interval to : 43200 minutes
(it has to be at least whatever the Idle Time-out is)
The maximum value is 43200 minutes (60 minutes x 24 hours x 30 days)
Also see Process Model Settings
and Configure Idle Time-out Settings for an Application Pool
Most of the shared hosting companies do not allow to cache objects for more than just few minutes.
For testing in a multi machine environment on a localhost - create two or more separate web applications.
ProcessCachePerRequest() has a security feature that will prevent processing cache from an unauthorized
request URLs, if a request comes from a machine that is not in the list of allowed machines it will error out.
- EasyCacheActive is used to turn on and off caching
(value can be "true" or "false"), cache objects can still be removed even when EasyCache is not active
but no new objects will be created or used.
- EasyCacheCommaSeparatedCacheReceiverURLsOfAllowedMachines
is a comma separated list of all the machines that host the web application in a multi server environment
such as web garden (it is only used if it has some value), each comma separated value must include the scheme
and name of the page that is setup to receive and synchronize the cache objects, for example:
"http://localhost/App1/Cache/CacheReceiver.aspx, http://localhost/App2/Cache/CacheReceiver.aspx"
|
|
|
|
|
|
|
|
|
|
|
|
|