I have recently finished developing a new module. However I’m hitting a weird issue.
If I place a call to the module with in a template (not inside of a weblog entries loop) it works fine
{exp:modname:function id="8"}If I call the module within a weblog entries loop and pass it a new id it also works fine
{exp:weblog:entries weblog="test" dynamic="off" show_expired_entries="yes" show_future_entries="yes" cache="no"}
<entry_id>{entry_id}</entry_id>
<content>{exp:modname:function id="7"}</content>
{/exp:weblog:entries}However if I call the module within a weblog entries loop and pass it an ID from a tag thats already been called in the template I get a random string as output.
{exp:modname:function id="8"}
{exp:weblog:entries weblog="test" dynamic="off" show_expired_entries="yes" show_future_entries="yes" cache="no"}
<entry_id>{entry_id}</entry_id>
<content>{exp:modname:function id="8"}</content>
{/exp:weblog:entries}This results in
<entry_id>35</entry_id>
<content>M10o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr</content>
After digging a little deeper I think this might be a DB cache reference.
I hope I’m missing something simple, any help or ideas would be greatly appreciated.