Why fix script runs every time I install the plugin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 11:17 PM
Hi, all
I have a fix script in the scoped plugin, usually fix script runs when we upgrade from lower version to a higher version and it always work like this.
However, this time the fix script I have runs every time after I zbooted and install the plugin, is this an expected behavior? If so, do we have a way to prevent this?
Here is the setting of my fix script:
active: true
before: false
flush_cache: false
run_once: true
unloadable: false
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 11:48 PM
I think without 'run once', the fix script will run everytime you install or upgrade, so 'run once' will still need to be checked, but interesting idea to add a precondition to determine if the plugin is installed for the first time, do you have an idea how to check that? thanks!