Prerequisites
Description
If a post CSS file auto-generated by Elementor in the folder wp-content/uploads/elementor/css folder is missing, it's not recreated when either a logged-in or not logged-in user displays the page.
I have the feeling that it was different at some point and the behaviror changed recently. Indeed, when we deploy a site, we flush the CSS cache using the dedicated WP CLI command. Beofre, Elementor was recreating the styles automatically (don't know exactly when). Now, it doesn't and we have to go to "Tools" > "Regenerate CSS".
I think it would be a good idea to regenerate the CSS file if missing on page load.
Adding a WP Cli command to regenerate the CSS cache globally after being flushed could be usefull.
Steps to reproduce
Create a post with Elementor. Publish it. Go to the wp-content/uploads/elementor/css folder. Delete the post-XX.css file. Browse to the page. You will get a 404 error on the style file you just deleted. Elementor will never recreate it.
Isolating the problem
Environment
Elementor v2.4.7
Elementor Pro v2.4.5
WordPress 5.1
Prerequisites
Description
If a post CSS file auto-generated by Elementor in the folder
wp-content/uploads/elementor/cssfolder is missing, it's not recreated when either a logged-in or not logged-in user displays the page.I have the feeling that it was different at some point and the behaviror changed recently. Indeed, when we deploy a site, we flush the CSS cache using the dedicated WP CLI command. Beofre, Elementor was recreating the styles automatically (don't know exactly when). Now, it doesn't and we have to go to "Tools" > "Regenerate CSS".
I think it would be a good idea to regenerate the CSS file if missing on page load.
Adding a WP Cli command to regenerate the CSS cache globally after being flushed could be usefull.
Steps to reproduce
Create a post with Elementor. Publish it. Go to the
wp-content/uploads/elementor/cssfolder. Delete thepost-XX.cssfile. Browse to the page. You will get a 404 error on the style file you just deleted. Elementor will never recreate it.Isolating the problem
Environment
Elementor v2.4.7
Elementor Pro v2.4.5
WordPress 5.1