Skip to content

Commit

Permalink
cache/compiled upload fix for getgrav/grav#938
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jul 16, 2016
1 parent 82a6429 commit 1382223
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Fix issue with calculating the `theme_url` with `open_basedir` restrictions [#699](https://github.com/getgrav/grav-plugin-admin/issues/699)
* Check for null payload before going on [#526](https://github.com/getgrav/grav-plugin-admin/issues/526)
* Redraw Dashboard Charts when collapsing/expanding the sidebar
* Fix for `cache/compiled` errors resulting from page media uploads [getgrav/grav#938](https://github.com/getgrav/grav/issues/938)

# v1.1.1
## 07/14/2016
Expand Down
3 changes: 0 additions & 3 deletions classes/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,6 @@ protected function taskAddmedia()
return false;
}

Cache::clearCache();
$this->admin->json_response = [
'status' => 'success',
'message' => $this->admin->translate('PLUGIN_ADMIN.FILE_UPLOADED_SUCCESSFULLY')
Expand Down Expand Up @@ -1046,7 +1045,6 @@ protected function taskDelmedia()

if (file_exists($targetPath)) {
if (unlink($targetPath)) {
Cache::clearCache();
$this->admin->json_response = [
'status' => 'success',
'message' => $this->admin->translate('PLUGIN_ADMIN.FILE_DELETED') . ': ' . $filename
Expand Down Expand Up @@ -1079,7 +1077,6 @@ protected function taskDelmedia()
}

if ($deletedResponsiveImage) {
Cache::clearCache();
$this->admin->json_response = [
'status' => 'success',
'message' => $this->admin->translate('PLUGIN_ADMIN.FILE_DELETED') . ': ' . $filename
Expand Down

0 comments on commit 1382223

Please sign in to comment.