When using a plugin multiple times in one template, using different function within the plugin, i.e.
{exp:my_plugin:my_function_01} {exp:my_plugin:my_function_02} {exp:my_plugin:my_function_03}
Is the my_plugin construct function called multiple times, or just once for all three occasions.
I’m making a database query in the plugin and I’d rather only make the query once rather than three times.
my alternative would be to use tagdata i.e
{exp:my_plugin:my_function} {my_var_01} {my_var_02} {my_var_03} {/exp:my_plugin:my_function}
but I’d rather not do this as I prefer the former method
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.