• Resolved goldhat

    (@goldhat)


    We’re using W3TC for our site and have it working fine with minify set to manual, we create a json list of scripts to minify. The issue I’m having is that while clearing cache works fine on production and staging servers, and on other developers local servers, in my WAMP local when I purge minify, it rebuilds the same file every time. No errors, success message is shown, but any changes made to the scripts is not included in the build. Disk cache is turned on.

    I’ve tried the following to get changes to show up in the minified file:

    – deleted entire /cache folder
    – cleared browser cache
    – turned off minify, turned it back on
    – uninstalled w3tc, then reinstalled

    What I’m most puzzled about is where on earth is W3TC reading the old version of the file, when it’s definitely been changed?

    I’ve had this problem with JS files included from the theme. Haven’t tested with CSS files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    After you uninstalled and reinstalled W3 Total Cache, and previously deleted all cache, have you tried to add all the files again manually?

    Thread Starter goldhat

    (@goldhat)

    If you mean add the files under the /minify settings page, no. We have those added automatically via a directory /w3tc-config/master.php that has a json definition with minify.css.groups and minify.js.groups. To update that master json file list we parse script definitions in another json file. Normally we only do that when adding a new file (so that new file appears under the /minify settings page). But I did do that step just in case, however it doesn’t change the list because all the files are the same as before. My change is just adding some script to one of the existing JS files.

    On staging and other servers the clear minify cache works fine with the same setup, files are rebuilt with the changes automatically.

    Thanks.

    • This reply was modified 5 years, 8 months ago by goldhat.
    Thread Starter goldhat

    (@goldhat)

    This issue has been resolved. In case it helps anyone that might have a similar issue it involved paths. The paths listed in the minify settings all started with /wp-content, because my site on local is in a subdirectory, the path would need to be /subdirectory/wp-content/ to work. I’ve solved this by creating a /wp-content/ at the root of my /www and symlinking it to the subdirectory at www/subdirectory/wp-content.

    My problem is thus solved… but I’m not sure if it’s correct or not that the plugin doesn’t seem to follow the site path settings. Because the site path settings on my site do include the subdirectory, so one might expect that a path of /wp-content/* would result in finding the file at /subdirectory/wp-content, yet for some reason it doesn’t.

    Thread Starter goldhat

    (@goldhat)

    Closing ticket.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Minify purge doesn’t update minify files on local’ is closed to new replies.