Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: skip purgeCache in local dev (#472)
**Which problem is this pull request solving?** Currently running `purgeCache` in local development throws an error. While I wouldn't expect it to actually purge anything (because there's no cache anyway), this prevents us running dev for any site that does use this. **Describe the solution you've chosen** Log a message and return if called in local dev without a token. If a token is passed I assume the user knows what they're doing and wants it to work for real. **Describe alternatives you've considered** Example: Another solution would be [...] **Checklist** Please add a `x` inside each checkbox: - [ ] I have read the [contribution guidelines](../blob/master/CONTRIBUTING.md). - [ ] The status checks are successful (continuous integration). Those can be seen below. --------- Co-authored-by: Marcus Weiner <[email protected]>
- Loading branch information