Skip to content

Commit

Permalink
Defer element queries to Application::EVENT_INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed May 7, 2022
1 parent 95b700b commit ff6fb24
Show file tree
Hide file tree
Showing 4 changed files with 1,730 additions and 844 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.2.1 - 2022-05-07
### Changed
- CP Clear Cache now defers any element queries to the `craft\web\Application::EVENT_INIT` event, avoiding potential issues with element queries being executed before Craft has fully initialised.

## 1.2.0 - 2022-03-23

### Added
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mmikkel/cp-clearcache",
"description": "Less clickin’ to get clearin’",
"type": "craft-plugin",
"version": "1.2.0",
"version": "1.2.1",
"keywords": [
"craft",
"cms",
Expand All @@ -23,7 +23,7 @@
],
"require": {
"craftcms/cms": "^3.7.0|^4.0.0-beta.3",
"php": "^7.2.5|^8.0.2"
"php": "^7.2.5|^8.0"
},
"require-dev": {
"craftcms/rector": "dev-main"
Expand Down
Loading

0 comments on commit ff6fb24

Please sign in to comment.