File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ release:
450
450
- note: undeletable pages
451
451
- undeletable page toggle only for permission holder
452
452
- tag controller
453
+ - add tag urls to sitemap.
453
454
- documentation
454
455
- Kristof: screenshots + banner + packagist + slack + filament plugin store
455
456
Original file line number Diff line number Diff line change 15
15
16
16
abstract class AbstractSeoPageController extends Controller
17
17
{
18
+ const CACHE_SEO_IMAGE_DIMENSIONS = 'seo_image_dimensions:%s ' ;
19
+
20
+ const CACHE_SEO_IMAGE_TTL = 60 * 60 * 8 ; // in seconds
21
+
18
22
protected function setSEOImage (Page $ page )
19
23
{
20
24
/** @var Media|null $firstSeoMedia */
@@ -68,11 +72,11 @@ protected function getSettingsTitle(): string
68
72
*/
69
73
protected function getSEOImageDimensions (Media $ seoMedia , string $ conversion ): array
70
74
{
71
- $ cacheKey = sprintf (PageController ::CACHE_SEO_IMAGE_DIMENSIONS , $ seoMedia ->uuid );
75
+ $ cacheKey = sprintf (static ::CACHE_SEO_IMAGE_DIMENSIONS , $ seoMedia ->uuid );
72
76
73
77
try {
74
78
return Cache::remember ($ cacheKey ,
75
- PageController ::CACHE_SEO_IMAGE_TTL ,
79
+ static ::CACHE_SEO_IMAGE_TTL ,
76
80
function () use ($ seoMedia , $ conversion ) {
77
81
$ filePath = $ seoMedia ->getPath ($ conversion );
78
82
$ image = Image::load ($ filePath );
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ class PageController extends AbstractSeoPageController
13
13
{
14
14
use ValidatesRequests;
15
15
16
- const CACHE_SEO_IMAGE_DIMENSIONS = 'seo_image_dimensions:%s ' ;
17
-
18
- const CACHE_SEO_IMAGE_TTL = 60 * 60 * 8 ; // in seconds
19
-
20
16
const TEMPLATE_PATH = 'filament-flexible-content-block-pages::%s.pages.index ' ;
21
17
22
18
public function index (Page $ page )
You can’t perform that action at this time.
0 commit comments