Force update of the modified javascript
-
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 ?
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
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.
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.
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
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.