Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Xanthia caching and plugins
  • Posted: 13.11.2007, 17:12
     
    dits
    rank:
    Helper 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?
  • Posted: 14.11.2007, 11:27
     
    uheweb
    rank:
    Professional 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
  • Posted: 14.11.2007, 15:25
     
    dits
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    14.11.08
    Posts:
    284
    Hi uheweb,

    Tried this route unsuccessful before, but it seems that had to do with include and certain blockshow calls. Cause now it's working like a dream.

    Thanks!

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula