- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- February 2005
- Status:
- offline
- last visit:
- 14.11.08
- Posts:
- 284
I've got a site were I display certain messages depending on the remote ip address. I check this in my home, master, etc. templates. Turning on Xanthia caching, understandably, caches the result of the check and therefore the test would not be reliable any more. If I implement the check and conditional output in a plugin, will that logic be processed with Xanthia caching on or will it be cached as well?
If it is cached any other suggestions on how to go about? -
- rank:
-
Professional
- registered:
- September 2004
- Status:
- offline
- last visit:
- 10.11.08
- Posts:
- 815
Smarty, with Xanthia / pnRender is based on, has a NO CACHE tag. You could check up on the Smarty way to use these, then just make sure to notate it the PostNuke way when placing n your template ( ie, using HTML comments rather than curly braces).
If I recall ( used this once a long time ago) do something like:
Code
<!--[nocache]-->
PUT YOUR PLUGIN CALL HERE
<--[/nocache]-->
NCM
