• Resolved tim2020

    (@tim2020)


    I am running my WordPress project with Total cache’s JS minify(Combine only) feature on the docker container.Each time we make any changes, we need to restart the docker container. Every time, I do so.I lost my minify folder which returns 500 Internal server error of all js files. To run it, I need to logged in admin panel and go to the total cache dashboard. As soon as I enter to dashboard, I can able to generate js files under wp-content/cache/minify.Even though, I have already setup a command to create an empty path (/wp-content/cache/minify).It is very strange issue that I am having.. I do not want to go to W3TC’s dashboard, each time we have restart docker.

    • This topic was modified 5 years, 4 months ago by tim2020.
    • This topic was modified 5 years, 4 months ago by tim2020.
    • This topic was modified 5 years, 4 months ago by tim2020.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor gidomanders

    (@gidomanders)

    Hi @tim2020,

    This is not really a question for our plugin, but related to how you setup your docker container. I’ll still answer your question, as I know a thing or two about docker.

    You should make a docker volume for the cache directory so the cache will persist when you restart the container. That way you will not have problems with missing files anymore. I hope this helps!

    Thread Starter tim2020

    (@tim2020)

    Everything works ONLY as soon as I enter to total cache dashboard through admin panel.

    Anyway, I have already set the volumes(/mount/cache/minify:/var/www/html/wp-content/cache/minify) which seems pretty ok.

    I have noticed that there are few hidden processes run once you enter into total cache dashboard.

    • This reply was modified 5 years, 4 months ago by tim2020.
    Thread Starter tim2020

    (@tim2020)

    Getting this following notice on the dashboard if I set the path inside docker compose’s volume.

    W3 Total Cache Error: Files and directories could not be automatically created to complete the installation.

    Please execute commands manually
    or use FTP form to allow W3 Total Cache make it automatically.
    Execute next commands in a shell:
    rm -rf /var/www/html/wp-content/cache/minify

    Plugin Contributor gidomanders

    (@gidomanders)

    The permissions are preventing some checks to run successful. If you set the volume to the cache directory instead of the minify directory inside it, the plugin can create the directory and possible other files and directories required depending on your settings.

    Thread Starter tim2020

    (@tim2020)

    thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘W3TotalCache JS Minify(Combined only) not working’ is closed to new replies.