views:

25

answers:

0

I'm running Cherokee on a Linux server, and I have a simple script like this:

$(function() {
 $('#avatars, #Avatar').hide();
 $('shoo').change(function() {
  $('#avatars, #Avatar').hide();
 });
});

But I keep getting Javascript parse errors. The reason is because if I access the script from my browser, it is truncated. The output is something like:

$(function() {
 $('#avatars, #Avatar').hide();
 $('shoo')

I can guarantee you that when editing the file with FTP or directly on the server with nano, the file is in tact.

Further, it seems to happen really randomly. I'll make some mods to the file and all of a sudden it comes back.. for a while.

I have access to my Cherokee admin panel. Does anyone have any idea where I might look? Is it a caching issue, maybe? Never seen anything like this.