• Resolved Roman Cieciuch

    (@romancieciuch)


    Hello there!

    Just installed your plugin. It merges files like a charm, but it doesn’t minify them.
    I went through all the options and have set to minify files as well.

    Please help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    Hi Roman,

    Do you have wp-cron turned off? The minification is done via a cron job after meeting. Also check of there are any errors in the logs.

    Thread Starter Roman Cieciuch

    (@romancieciuch)

    I think I have the cron turned on as the other plugins work properly.

    How often does the minification process runs in your plugin’s case? Maybe I’ll wait that time.

    Plugin Author launchinteractive

    (@launchinteractive)

    Hi Roman,

    When a Javascript or CSS file changes MMR merges the files and schedules a minification cron. It should execute as soon as it can. Normally this is within a minute but it may take some time depending on how many files need to be minified.

    If there were errors minifying files then you will never see the minified versions. This is to avoid breaking the site at all. Please check the MMR logs to ensure there are no errors.

    I have seem some plugins or themes that change javascript or CSS files on every page load. If this is the case for you then you will likely never see the minified versions.

    Plugin Author launchinteractive

    (@launchinteractive)

    Hi Roman,

    We released a new version of MMR this week that improves the reliability of the minification. We also added an extra check every hour that will ensure files are minified. Please give the new version a go and let me know if you still have issues.

    Thread Starter Roman Cieciuch

    (@romancieciuch)

    Guess what, it’ll be awesome if the plugin changes the minified filename when clicking Purge All.

    Plugin Author launchinteractive

    (@launchinteractive)

    Hi Roman,

    Can you explain why you would need this?

    Thread Starter Roman Cieciuch

    (@romancieciuch)

    Of course πŸ™‚

    I am a web developer, I make changes to both CSS and JS files.
    If I want to show them to the world – I click Purge All, and my files are processed.

    But, if the filename isn’t about to change – nobody sees my effort.

    As in .htaccess I have set for CSS and JS files expiration date for a month.
    So, if the filename stays the same – browser ain’t download the styles and JS again – it will serve it from its own cache = nobody can see my effort πŸ™‚

    I believe it is easy fix to make.
    Thank you.

    Plugin Author launchinteractive

    (@launchinteractive)

    Hi Roman,

    MMR will change the filename whenever the file changes so you shouldn’t have to purge MMR.

    Do you cache the HTML? If so I think that might be the issue.

    Thread Starter Roman Cieciuch

    (@romancieciuch)

    Hello,

    Ok, so how the MMR knows I made changes to the file?

    Plugin Author launchinteractive

    (@launchinteractive)

    It is based on the last modified time of the files that are merged.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Plugin doesn’t minify CSS nor JS’ is closed to new replies.