Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: Registered plugin as function with nocache
aknight720

Replies: 7
Views: 6648

PostForum: General   Posted: Tue Mar 21, 2017 12:26 pm   Subject: Registered plugin as function with nocache
I have managed to identify the issue, it's also caching the users id, so what is being shown is correct, but not what was expected because it's the wrong users info, at least now I can see the issue, ...
  Topic: Registered plugin as function with nocache
aknight720

Replies: 7
Views: 6648

PostForum: General   Posted: Tue Mar 21, 2017 11:07 am   Subject: Registered plugin as function with nocache
"According to docs" the use of these parameters is discouraged.

Which is why I tried enclosing it in nocache tags like in the example, I have tried your suggestion and the function data ...
  Topic: Registered plugin as function with nocache
aknight720

Replies: 7
Views: 6648

PostForum: General   Posted: Mon Mar 20, 2017 9:23 pm   Subject: Registered plugin as function with nocache
I think I have an answer to this.
If you don't want the output of your function cached, add a "nocache" flag.

F.e.{myfunction nocache}

Is that not just the same as I wrote i ...
  Topic: Registered plugin as function with nocache
aknight720

Replies: 7
Views: 6648

PostForum: General   Posted: Fri Mar 17, 2017 8:16 am   Subject: Registered plugin as function with nocache
I have taken over someones else work and having a problem with a registered plugin function still being cached when cacheable is set to false

its setup as follows:-

$template->registerPlugin& ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP