Hosted .js files do not delete or update

  • 1
  • Problem
  • Updated 8 years ago
  • Solved
This is quite a serious one in my book.

You cannot edit a .js file to make site wide changes because the old one is still active.
If you delete the file, the icon disappears from the file manager but the actual file is not deleted.

I have not tried the CSS files yet, but I suspect the same thing to happen.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
  • a bit stuck now

Posted 9 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hi Boomer

I'm getting our engineers to take a look at what's going on here. One of us will report back with more information.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Have you tried clearing your cache? Then, re-adding your .js file to your site?

Support is a bit sparse right now.. but we will try to get this sorted out.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Yep I've done all the normal stuff ;-) Cleared cache, updated, waited 30 min ...
What I've done is moved them to new directories and updated the links that point to them. I'm testing from a test page at the moment before I make the changes site wide. I can still continue... so no rush. Tell them to enjoy their Saturday and the beers.
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
Hey Boomer, this as always happened to me since the beginning of Pro. I just blew it off and gave it a few days to update it. Keeps us posted of anything regarding this issue :) thanks!
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Thanks lambofgod for letting us know that this too happens to you. From what I'm understanding then, is you upload a .js file. Use it, then decide to tweak the .js file and then it doesn't work anymore? I will need to try and replicate for our engineers. Please let me know if I have missed a step here.
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
Yes ma'am. That is what happens. It may not even be a tweak. The entire code could change and even when I reupdate it, it still shows the old one. Remember the login system that I made that uses .js files? Well, if a member was redirected to one page, then I change the file to redirect him to the other, it'll still go back to the old page.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Is it possible for either one of you to send me two versions of a .js file script that I can use to test on my site? That would be super helpful! Thanks!
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
Yep let me set something up for you to use that'll work.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Here's what happens.

1. You tweak the .js file in notepad.
2. Upload the new file to your file manager.
3. It asks you if you want to overwrite the old file.
4. You select "yes" and it ovewrites the old one.
5. If you view the retweaked file in the file manager it confirms the changes.

Here's the problem though:
The webpage accessing the retweaked file still sees the old untweaked version.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
P.S. If you remember I reported the same problem with images a little while ago. You would overwrite an image with one of the same name and it would still display (use) the old one. This is the same now with files. http://forum.yola.com/yola/topics/fil...
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Thanks guys! Your steps have been super helpful. Hopefully it won't take us too long to sort this out. Thanks for your patience as we try to resolve this issue.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
I have tried to replicate and unfortunately I am not able to. I have sent off an email to our intrepid engineers. Hopefully, they will be able to sort this issue out.
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
Really? Lucky you lol
Photo of papa

papa

  • 327 Posts
  • 20 Reply Likes
Hi all
I have this same problem, see
http://forum.yola.com/yola/topics/jav...

UK Duke made a great suggestion that work 95% of the time. Before you update your site clear the history. Seems to me that the history on firefox or ie8 will alway take you back to the previous one before update.

Like I say 95% of the time. Some time it still lags for hourss before it shows threw. it does appear in time though

So Try to clear history before updating, work 95% for me. Many that to Lee for HIS suggestion

papa
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Images also still show up after being deleted. Don't know if there is a time lag?
I've done all the usual. Cleared cache, updated, waited, retried... etc, etc.
Just thought I would let you know :-)
Photo of Ed-a-Torials @ Honey Bear Playhomes

Ed-a-Torials @ Honey Bear Playhomes, Champion

  • 2582 Posts
  • 279 Reply Likes
Hmmm I upload a replacement image named the same as the one in the file manager and when I update to view the site the old one is still there and the new one nowhere to be found. Been this way for a while. Usual steps taken countless times...
Photo of lambofgod

lambofgod

  • 875 Posts
  • 35 Reply Likes
Yep same here, if yall can remember, I reported this problem awhile ago with a gif image. It took about 9 hours to show the new one.
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hey all,

Ok, so our engineers have gotten back to us on this one and the files are actually working as expected.

The reason behind this is that we cache resources within the File Manager for up to an hour before they are cleared and replaced by the updated file.

So even after you update a file and publish, you will still have to wait an hour for the updated resource to be visible.

Thanks so much for your patience on this one! Please let us know if you have any continued trouble with this.

Emmy
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
There's obviously good reasoning behing this one, Emmy?
Hey! ... could have been worse! ... could have been 2 hours ;-)
Photo of Monique

Monique, VP of Customer Support

  • 6294 Posts
  • 446 Reply Likes
Have to admit this was news to support. As is probably obvious from this thread, so no sense denying it ;) We are entering into negotiations to get the time greatly reduced. Will let you know how it turns out :)
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hey all,
Wanted to update you. This has been changed and the cache is now 5 minutes so the file should change quite quickly.

Yay!

Emmy
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Good news, thanks. Enjoying Cape Town ??
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
It is the most lovely place on the planet I have decided. So, yes, I am enjoying Cape Town :)