Fork me on GitHub

caching question  Bottom

  • I have some variable $iscompleted

    Code

    if($tmpcvid)
        {
               pnModSetVar('cv','iscompleted',true);
     
            // Success
            LogUtil :: registerStatus(_CVISCREATED);
        } else
        {
             pnModDelVar('cv','iscompleted');
              pnModSetVar('cv','iscompleted',false);  
             
        }

    so if CV is completed I show "Edit" link in template(I check $is completed variable in template). and if $iscompleted is false I show "submit" link.
    but there is a problem. if i log in and hav CV and than log out still "Edit" link is shown. I need to refresh
    page to refresh link/menu content.
    yes i have 'nocache' tags around menu im template file, but this has no effect.
    i see writing Smarty plugin functions can help, but what i'm doing worng in current code?
  • Smarty and pnSesionVar functions do everything i need.. sorry for this question icon_smile



    edited by: shoshia, datetimebrief

This list is based on users active over the last 60 minutes.