Results 1 to 14 of 14

CDN question, bugfixes don't work

This is a discussion on CDN question, bugfixes don't work within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I am running MaxCDN via vBSEO since a loing time on my vBulletin forum. All is fine. However I ...

  1. #1
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times

    CDN question, bugfixes don't work

    Hi, I am running MaxCDN via vBSEO since a loing time on my vBulletin forum. All is fine. However I wanted to fix two vBulletin bugs (e.g. Login Required - vBulletin JIRA and Login Required - vBulletin JIRA) that require changes in several Javascript files from the /clientscript/ folder. The bugfixes work very well on my test forum which is not running MaxCDN. However on my live site with MaxCDN they don't work. If I disable the CDN integration for Javascript/CSS via vSBEO control panel the bugfixes work. I purged all files from the pull zone but the changed files simply won't work on my live site. Any ideas what I can do to make the bugfixes work AND keep MaxCDN fully enabled? Thanks a lot.

  2. #2
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hi Christian,

    You may need to flush the cache through your MaxCDN account.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  3. #3
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    Hi Andrés, thanks a lot for your quick reply. I suppose you mean the function 'Purge an individual file from edge servers' or 'Purge all cache from edge servers'? I did all that, but the result remains the same, the fixes from the modified JS files don't work with the CDN fully enabled. That's the big mystery that made me ask for help.

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Are you sure they just aren't cached locally for you? try clearing out your temp internet files.

  5. #5
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    Yep, I am sure. Before I posted here, I emptied the browsers chaches (CTRL+F5), I deleted all tmp files from my local machine, I also emptied the vB cache. And as said I purged the files from the CDN pull zone cache. It remains the same, CDN on, no bugfix works, CDN off, bugfixes work. As said, it's really a mystery. There HAS to be a reason. Otherwise no update of vB would ever work with a running CDN, and that is clearly not the case .

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If you view the file directly, ie cdn.site.com/clientscript/file.js do you see the changed code? what about in www.site.com/clientscript/file.js

    If there's a difference, it's a cache/cdn issue that needs to be flushed/addressed with them

  7. #7
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    I checked the various files directly, they do show the changes I made. One example:

    http://ccc.cureconnections.netdna-cd...turecomment.js

    Code:
    -        form.add_variable('message', vB_Editor[this.editorid].get_editor_contents());
    +        form.add_variable('message', vB_Editor[this.editorid].getRawData());
    Which leads to the question again, why do the changes only take effect with a disabled CDN? And where is the caching issue?

    Btw, I filed a support ticket over at MaxCDN last night but no reply so far.

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    A quick ctrl +F and i don't see any instance of "form." anything in that file at all...

  9. #9
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    Look for e.g. ".getRawData());", it's changed to this from ".get_editor_contents());". Yves from vB said that by minifying these files certain bits look differently. Maybe this thread might be of interest https://www.vbulletin.com/forum/show...up-window-size.

    However these are the original vB files that just have been modified as requested in the bugfixes. And again: it works on both my test forum without a CDN and the live site with the CDN disabled. I will happily pm you access to any of these to convince yourself ;-).

  10. #10
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I'm not 100% up to speed on the inner workings of vb4's JS files, but it's possible that

    getRawData()

    is trying to do a lookup via url of some sort, and runs into this old bug that is yet unfixed.[#VBIV-6332] Use Absolute URLs When Making AJAX Requests - vBulletin JIRA

  11. #11
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    Phew, that's going way too deep for me ;-).But would that bug be an explanation that the bugfixes do work on a test forum without CDN and a live site with a disabled CDN? And please keep in mind that it's not only getRawData() that I had to change, for the smilie box size issue it's only one ) that needs to be replaced and the fix works except for when the CDN is on. What I simply don't understand here is how does it come that when you update vB from one version to the next, bugfixes are working nonetheless, but when you fix at least js files manually they don't (talking about an enabled CDN again)... By the way, no reply from the MaxCDN support after nearly 48 hours.

  12. #12
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I really don't have anything else to advise on this. If the code is there but not working, it points directly to that vb bug of cross subdomain ajax.

  13. #13
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    Thanks a lot anyway. I will just wait for 4.1.10, not the end of the world, just sad that I managed to fix a few bugs but cannot run them properly. But to disable parts of the CDN just to get these to work isn't worth it.

    P.S. The smilie pop up size fix works with the CDN fully enabled on Internet Explorer as my moderators just told me (I don't use IE). Whatever that means ;-).

  14. #14
    Senior Member ceho's Avatar
    Real Name
    Christian
    Join Date
    Dec 2008
    Location
    Germany
    Posts
    159
    Liked
    13 times
    Just for the records, after a few days it suddenly started to work "by itself", not only for me, my mods noticed the same, without empyting any local caches....

Similar Threads

  1. Does this work with vb 4?
    By kinderkyle in forum General Discussion
    Replies: 2
    Last Post: 08-14-2010, 02:08 PM
  2. Will this work in vB 4.0.4?
    By jdark in forum Pre-Sales Questions
    Replies: 7
    Last Post: 07-16-2010, 07:11 PM
  3. How does this work?
    By kyoshokid in forum Pre-Sales Questions
    Replies: 3
    Last Post: 02-07-2010, 01:15 PM
  4. lot of work put into this
    By lawstudent in forum Critique Please
    Replies: 52
    Last Post: 05-11-2009, 12:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •