-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README with information about the refresh command
- Loading branch information
1 parent
4a4770d
commit f008d8a
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
@@ -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) | ||
|