Skip to content

Commit

Permalink
Update flush-css.md (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
rami-elementor authored Sep 18, 2024
1 parent 202e793 commit de8e97a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/cli/flush-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@

<Badge type="tip" vertical="top" text="Elementor Core" /> <Badge type="warning" vertical="top" text="Advanced" />

Styles set in Elementor are saved in the database, this information is used to generate CSS files in the `uploads` folder. Elementor CLI `flush CSS` command will flush all the CSS files in cache and recreate them using the most recent settings stored in the database.
Styles set in Elementor are saved in the database, this information is used to generate CSS files in `/wp-content/uploads/elementor/css/` folder. Elementor CLI `flush-css` command will delete all the cached CSS files and recreate them using the most recent settings stored in the database.

## Command

```bash
wp elementor flush-css [--network]
wp elementor flush-css [--regenerate] [--network]
```

## Arguments

`[--network]`
`[--regenerate]`

_(Optional)_ Flush CSS files for all the sites in the network.
_(Optional)_ Re-create the CSS files. Otherwise, updated CSS files will be created by Elementor on the next page visit.

`[--regenerate]`
`[--network]`

_(Optional)_ Re-create the CSS files. Otherwise they will be created by a page visit.
_(Optional)_ Flush CSS files for all the sites in the network.

## Usage Examples

```bash
wp elementor flush-css
```

This command will flush the CSS files for all Elementor pages.
This command will flush the CSS files for all Elementor pages. It doesn't create new CSS files, only flush the old files.

```bash
wp elementor flush-css --network
wp elementor flush-css --regenerate
```

This command will flush the CSS files for all Elementor pages in all the sites in the network.
This command will flush the CSS files for all Elementor pages and re-create the new CSS files.

```bash
wp elementor flush-css --regenerate
wp elementor flush-css --network
```

This command will flush the CSS files for elementor page builder and re-create the new CSS files.
This command will flush the CSS files for all Elementor pages in all the sites in the network.

0 comments on commit de8e97a

Please sign in to comment.