I reduced the template down to just outputing the view_parameters.myparam and it only gets passed once per variable until I remove the content cache. The permissions are set to 770 and owned by the webserver user. That part is working fine. The only error when debug is turned on is the error stating the parameter is null on the second execution. any idea what can be the problem. again the same code works fine on windows.