I am developing a module for Joomla 1.6 but I am running in to a problem which I believe is being caused by a cache problem.
Code: Select all
$document =& JFactory::getDocument();
This is great at first and the module works fine, but after refreshing a few times or navigating to a different page the module stops working, after investigating with FireBug I realised the JS files were not being inculded in the head anymore.
If I un-publish and re-publish the module then the JS files pop back into the head and the module works as it should, but again after a page or two they disappear again.
The only thing I could think of is that it is some sort of cache issue since the rest of the php for the module seems fine and the module is displaying, just without the JS elements.
Can anyone offer any solutions or reasons as to why this might happen?