Skip to content

Commit

Permalink
Update README with information about the refresh command
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Apr 8, 2021
1 parent 4a4770d commit f008d8a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ A [Flarum](http://flarum.org) extension. A Flarum extension that adds polls to y

### Installation

Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually with composer:

```sh
composer require fof/polls
```
Expand All @@ -29,6 +27,20 @@ $ composer require fof/polls
composer update fof/polls
```

### Metadata update

To improve performance, Polls calculates and stores the number of votes when it changes.

As long as the extension is active, Polls will automatically keep those numbers up to date and you don't need to do anything.

If you are updating from a version prior to 0.3.3, if you disabled the extension for a while or if you made manual changes to the database you should run the following command to refresh the numbers:

```sh
php flarum fof:polls:refresh
```

You can only run the command when the extension is enabled in the admin panel.

### Links

[<img src="https://opencollective.com/fof/donate/[email protected]?color=blue" height="25" />](https://opencollective.com/fof/donate)
Expand Down

0 comments on commit f008d8a

Please sign in to comment.