Implements file based caching on the given page output.
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:cachefile /> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
Enabled | Boolean | - | Sets a value indicating whether caching is enabled. |
Expiration | DateTime | - | Sets the expiration date/time to compare with the cache entry on disk. When the specified expiration value exceeds the last modified value of the cached entry a new entry is written. |
MaxAge | String | - | Sets the timeout in the format of a TimeSpan (00:00:00). |
Transfer | Boolean | - | Sets a value indicating whether existsing cache should be transferred on execution. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.Key.Add | ✓ | Adds data to the cache signature. |
This.Key.RemoveChannelDependency | ✓ | Removes the channel dependency. |
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.Enable | ✓ | Enables the cache. |
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.Ignore | ✓ | Ignores the current cache file, but cache will be written after page execution. |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.Serve | ✓ | Serves the existing cache, if any. |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |