-
Notifications
You must be signed in to change notification settings - Fork 1.5k
β π Feature Request: WP CLI Command to regenerate the CSSΒ #2161
Copy link
Copy link
Closed
Labels
component/wp-cliReferences any component related to the integration with WP-CLI.References any component related to the integration with WP-CLI.mod*[Temp.] For internal use only.[Temp.] For internal use only.request/featureIndicates a Request for a non-existing New Feature.Indicates a Request for a non-existing New Feature.solvedIndicates that an Issue has been Solved, or a Feature Request has been Released.Indicates that an Issue has been Solved, or a Feature Request has been Released.status/mergedIndicates when a Pull Request has been merged to a Release.Indicates when a Pull Request has been merged to a Release.tools/regenerate-cssReferences the Regenerate CSS & Data option in the Elementor Tools admin page.References the Regenerate CSS & Data option in the Elementor Tools admin page.type/developer-apiIndicates when a topic is related to the Developer API and Documentation.Indicates when a topic is related to the Developer API and Documentation.
Milestone
Metadata
Metadata
Assignees
Labels
component/wp-cliReferences any component related to the integration with WP-CLI.References any component related to the integration with WP-CLI.mod*[Temp.] For internal use only.[Temp.] For internal use only.request/featureIndicates a Request for a non-existing New Feature.Indicates a Request for a non-existing New Feature.solvedIndicates that an Issue has been Solved, or a Feature Request has been Released.Indicates that an Issue has been Solved, or a Feature Request has been Released.status/mergedIndicates when a Pull Request has been merged to a Release.Indicates when a Pull Request has been merged to a Release.tools/regenerate-cssReferences the Regenerate CSS & Data option in the Elementor Tools admin page.References the Regenerate CSS & Data option in the Elementor Tools admin page.type/developer-apiIndicates when a topic is related to the Developer API and Documentation.Indicates when a topic is related to the Developer API and Documentation.
This command can be chained in the automatic site migration tools to clear the cache after the site is migrated to live from staging or vice-versa.
Right now this can be quickly run from WP CLI like this -
wp eval "Elementor\Plugin::$instance->posts_css_manager->clear_cache();"Although it would be nice to have this as a dedicated command.