← Back to team overview

phpdevshell team mailing list archive

Re: [Bug 691314] Re: Templates files and javascript notgetting updated

 

This happen usually on a framework that used any kind of caching solution. Try this:
1. Disable any kind of caching on development. Either default PHPDS caching mechanism, memcache, etc.
2. Sometime web server is configured to cache its output. You can use .htaccess to force web server from caching the result.
3. Don't use IE in development.
Sent from my AXIS Worry Free BlackBerry® smartphone

-----Original Message-----
From: jsherk <691314@xxxxxxxxxxxxxxxxxx>
Sender: phpdevshell-bounces+ganiutomo=gmail.com@xxxxxxxxxxxxxxxxxxx
Date: Fri, 17 Dec 2010 16:40:37 
To: <phpdevshell@xxxxxxxxxxxxxxxxxxx>
Reply-To: Bug 691314 <691314@xxxxxxxxxxxxxxxxxx>
Subject: [Phpdevshell] [Bug 691314] Re: Templates files and javascript not
	getting updated

Yes, I tried that as well and did not solve problem.

However I think I found the problem, and it does not appear to be a
phpds issue...

I just ran some tests and found the following:
#1 - Modify and save file on my local machine.
#2 - Upload modified file to server.
#3 - Confirm that uploaded file has new timestamp.
#4 - Download the file from server.
#5 - The downloaded file is NOT the same as the original file that was uploaded.

So the issue appears to somehow be related to either a server side issue
or an ftp issue.

I will continue to investigate and report back when I get more details.

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/691314

Title:
  Templates files and javascript not getting updated

Status in Open Source PHP RAD Framework with UI.:
  New

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->template->addJsFileToHead('plugins/myPlugin/includes/myfile.js');

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.site.config.php settings are as follows:
$configuration['production'] = false;
$configuration['cache_refresh_intervals'] = 2;
$configuration['views_cache_lifetime'] = 2;
$configuration['memcache_timeout'] = 2;


_______________________________________________
Mailing list: https://launchpad.net/~phpdevshell
Post to     : phpdevshell@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~phpdevshell
More help   : https://help.launchpad.net/ListHelp

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/691314

Title:
  Templates files and javascript not getting updated

Status in Open Source PHP RAD Framework with UI.:
  New

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->template->addJsFileToHead('plugins/myPlugin/includes/myfile.js');

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.site.config.php settings are as follows:
$configuration['production'] = false;
$configuration['cache_refresh_intervals'] = 2;
$configuration['views_cache_lifetime'] = 2;
$configuration['memcache_timeout'] = 2;





References