Name | Handle | Cache Settings | Cache Output | Cache Output on Post | Cache Output For Registered Users | Output Cache Lifetime |
---|---|---|---|---|---|---|
記事 | content | 有効 | 有効 | 有効 | 無効 | 0 |
HTML | html | 有効 | 有効 | 有効 | 有効 | 0 |
画像 | image | 有効 | 有効 | 有効 | 無効 | 0 |
ファイル | file | 有効 | 有効 | 有効 | 有効 | 0 |
水平線 | horizontal_rule | 有効 | 有効 | 有効 | 有効 | 0 |
特色 | feature | 有効 | 有効 | 有効 | 有効 | 0 |
オートナビ | autonav | 有効 | 有効 | 有効 | 無効 | 300 |
ページタイトル | page_title | 有効 | 有効 | 有効 | 無効 | 0 |
FAQ | faq | 有効 | 有効 | 有効 | 有効 | 0 |
ページリスト | page_list | 有効 | 有効 | 有効 | 無効 | 300 |
「次へ」「前へ」ナビ | next_previous | 有効 | 無効 | 無効 | 無効 | 0 |
日付ナビ | date_navigation | 有効 | 無効 | 無効 | 無効 | 0 |
タグ | tags | 有効 | 有効 | 無効 | 無効 | 0 |
トピックリスト | topic_list | 有効 | 無効 | 無効 | 無効 | 0 |
RSS表示 | rss_displayer | 有効 | 有効 | 有効 | 有効 | 3600 |
言語切り替え | switch_language | 有効 | 無効 | 無効 | 無効 | 0 |
フォーム | express_form | 有効 | 無効 | 無効 | 無効 | 0 |
検索 | search | 有効 | 無効 | 無効 | 無効 | 0 |
外部フォーム | external_form | 有効 | 無効 | 無効 | 無効 | 0 |
Express エントリーリスト | express_entry_list | 有効 | 無効 | 無効 | 無効 | 0 |
Express エントリー詳細 | express_entry_detail | 有効 | 無効 | 無効 | 無効 | 0 |
アンケート | survey | 有効 | 無効 | 無効 | 無効 | 0 |
コメント欄 | core_conversation | 有効 | 無効 | 無効 | 無効 | 0 |
ソーシャルリンク | social_links | 有効 | 有効 | 有効 | 有効 | 0 |
紹介 | testimonial | 有効 | 有効 | 有効 | 有効 | 0 |
このページをシェア | share_this_page | 有効 | 有効 | 有効 | 有効 | 0 |
カレンダー | calendar | 有効 | 無効 | 無効 | 無効 | 0 |
イベントリスト | event_list | 有効 | 無効 | 無効 | 無効 | 0 |
カレンダーイベント | calendar_event | 有効 | 無効 | 無効 | 無効 | 0 |
ページ属性表示 | page_attribute_display | 有効 | 有効 | 有効 | 無効 | 0 |
画像スライダー | image_slider | 有効 | 有効 | 有効 | 無効 | 0 |
ビデオプレイヤー | video | 有効 | 有効 | 有効 | 無効 | 0 |
ドキュメントライブラリ | document_library | 有効 | 無効 | 無効 | 無効 | 0 |
YouTubeビデオ | youtube | 有効 | 有効 | 有効 | 無効 | 0 |
Googleマップ | google_map | 有効 | 有効 | 有効 | 無効 | 0 |
conrete5 ステータスメッセージ | desktop_app_status | 有効 | 有効 | 有効 | 有効 | 86400 |
サイトアクティビティ | desktop_site_activity | 有効 | 無効 | 無効 | 無効 | 0 |
管理画面 注目アドオン | desktop_featured_addon | 有効 | 有効 | 有効 | 有効 | 7200 |
注目テーマ | desktop_featured_theme | 有効 | 有効 | 有効 | 有効 | 7200 |
最新のフォーム | desktop_latest_form | 有効 | 無効 | 無効 | 無効 | 0 |
確認待ち | desktop_waiting_for_me | 有効 | 無効 | 無効 | 無効 | 0 |
下書きリスト | desktop_draft_list | 有効 | 無効 | 無効 | 無効 | 0 |
管理画面 最新ニュースフロー | desktop_newsflow_latest | 有効 | 有効 | 有効 | 有効 | 7200 |
レガシーフォーム | form | 無効 | 無効 | 無効 | 無効 | 0 |
Last active
March 15, 2022 09:45
-
-
Save hissy/dd33d45cff6413a6d008c216d147208f to your computer and use it in GitHub Desktop.
[Concrete CMS][8.5.x] Show cache settings of block types ブロックタイプごとのキャッシュ設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$loc = \Concrete\Core\Localization\Localization::getInstance(); | |
$loc->setLocale('ja_JP'); | |
echo '|Name|Handle|Cache Settings|Cache Output|Cache Output on Post|Cache Output For Registered Users|Output Cache Lifetime|'; | |
echo PHP_EOL; | |
echo '|----|----|----|----|----|----|----|'; | |
echo PHP_EOL; | |
$blockTypes = \Concrete\Core\Block\BlockType\BlockTypeList::getInstalledList(); | |
/** @var \Concrete\Core\Entity\Block\BlockType\BlockType $blockType */ | |
foreach ($blockTypes as $blockType) { | |
/** @var \Concrete\Core\Block\BlockController $controller */ | |
$controller = $blockType->getController(); | |
if ($controller === null) { | |
continue; | |
} | |
echo sprintf( | |
'|%s|%s|%s|%s|%s|%s|%s|', | |
$controller->getBlockTypeName(), | |
$blockType->getBlockTypeHandle(), | |
($controller->cacheBlockRecord()) ? t('Enable') : t('Disable'), | |
($controller->cacheBlockOutput()) ? t('Enable') : t('Disable'), | |
($controller->cacheBlockOutputOnPost()) ? t('Enable') : t('Disable'), | |
($controller->cacheBlockOutputForRegisteredUsers()) ? t('Enable') : t('Disable'), | |
$controller->getBlockTypeCacheOutputLifetime() | |
); | |
echo PHP_EOL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment