Home Forums WoodMart support forum Force update of the modified javascript

Force update of the modified javascript

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #145930

    anatta
    Participant

    Hi, I have made small modification of this file in

    wp-content/themes/woodmart/js/functions.min.js

    I have used the Combine JS, I have deleted the Autoptimize cache, purge all the W3TC cache, using chrome browser incognito mode, but still I can’t see the updated script in the website, how to force update the javascript and override the caching ?

    #146017

    Artem Temos
    Keymaster

    Hello,

    You need to contact your hosting provider in such a case since it is not related to the theme. There is still some cache or CDN on your server if you don’t see the changes in your files.

    Kind Regards

    #146029

    anatta
    Participant

    Hi I think it can still be related to the theme though, if I access the js file individually it will show the updated one. But I am using the combine JS under the performance setting of the Woodmart theme. So maybe the theme does not recombine again even after I update the individual theme, so that’s why I need to know how to trigger the theme to re-update again ?

    I have also purge this file from the cloudflare cdn.

    #146032

    Artem Temos
    Keymaster

    You said that you edited functions.min.js file and not the original file. If you customize functions.js file then yes, it doesn’t minify it automatically.

    #146037

    anatta
    Participant

    I had edited both functions.min.js and functions.js actually.

    But now I know how it works, I had assumed that this theme will dynamically generate the theme.min.js file from those functions file. But it’s not the case, so I have to edit the theme.min.js file too. If I turn on Performance > Combine JS files.

    Now it works.

    Thanks

    #146047

    Artem Temos
    Keymaster

    Yes, sorry, we forgot to mention that combine JS function adds theme.min.js file that contains the code from all JS files used in our theme.

Viewing 6 posts - 1 through 6 (of 6 total)