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.
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.
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.
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.
Guess what, it’ll be awesome if the plugin changes the minified filename when clicking Purge All.
Hi Roman,
Can you explain why you would need this?
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.
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.
Hello,
Ok, so how the MMR knows I made changes to the file?
It is based on the last modified time of the files that are merged.