Templates files and javascript not getting updated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PHPDevShell |
Invalid
|
Undecided
|
Unassigned |
Bug Description
v3beta4 is still showing the same issues with earlier betas.
When I upload a new template file, the new file is not used right away. I almost always have to upload the file twice to get the new template to work. I do not have an issue with controller or models files... uploading them one time always works.
Also, the other issue I have noticed is with Javascript. I use this in the controller file:
$this->
When I modify the js file, the changes almost never take effect, even when I have also modified the template file. I have to actually save the js file with a new name and change the addJsFileToHead to the new name, or the new js will not take effect.
If I delete the js file first from the server and then load the page, and then upload the js file again with the same name and then load the page a second time, then old js will still appear on the page, not the new.
My single.
$configuration[
$configuration[
$configuration[
$configuration[
I may have found the issue that is causing this problem...
I am using WinSCP to upload/download files, and there is a setting called "Preserve Timestamp" which was enabled, so everytime I modified a file and saved it on my computer, the CREATED DATE did NOT change, and then when I uploaded it to the server with WinSCP, it keep the original created date and would not modify the timestamp.
I have unchecked this option, so now everytime a file is uploaded, it gets a new timestamp. So, assuming that phpds looks at timestamps to determine if a file has been modified or not, this should solve the problem.
Setting is located here in WinSCP:
Preferences > Preferences > Transfer > Common Options:Preserve Timestamp
I will report back if I find the problem still exists.
Thanks