Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuell1 committed Aug 17, 2019
2 parents 5a8a2d9 + 4603b52 commit 6768485
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/ContentEditor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Samuell\ContentEditor\Components;

use Cache;
use File;
use BackendAuth;
use Cms\Classes\Content;
Expand Down Expand Up @@ -88,7 +89,9 @@ public function onRender()
if ($this->checkEditor()) {
$this->content = $content;
} else {
return $this->renderPartial('@render.htm', ['content' => $content]);
return Cache::remember('contenteditor::content-' . $this->file, now()->addHours(24), function () use ($content) {
return $this->renderPartial('@render.htm', ['content' => $content]);
});
}
}

Expand Down
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@
1.2.4:
- Allow style attribute in property dialog
- Add support for image cropping
- Added permissions for backend settings page
- Added permissions for backend settings page
1.2.5:
- Add component caching

0 comments on commit 6768485

Please sign in to comment.