From b862c354b57e20d1d22ecb0689cd4fd9c405d672 Mon Sep 17 00:00:00 2001 From: naoki hirata Date: Sun, 8 Feb 2015 21:46:20 +0900 Subject: [PATCH] =?utf8?q?=E3=80=8C=E3=83=96=E3=83=AD=E3=82=B0=E3=83=A1?= =?utf8?q?=E3=82=A4=E3=83=B3=E3=80=8D=E3=82=A6=E3=82=A3=E3=82=B8=E3=82=A7?= =?utf8?q?=E3=83=83=E3=83=88=E6=9B=B4=E6=96=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../admin_blog_mainEntryWidgetContainer.php | 73 ++++++++++++++------- .../include/container/blog_mainCommonDef.php | 75 ++++++++++++++++++++-- .../container/blog_mainEntryWidgetContainer.php | 73 ++++++++++++++------- 3 files changed, 168 insertions(+), 53 deletions(-) diff --git a/widgets/blog_main/include/container/admin_blog_mainEntryWidgetContainer.php b/widgets/blog_main/include/container/admin_blog_mainEntryWidgetContainer.php index 28c51506..45d64f49 100644 --- a/widgets/blog_main/include/container/admin_blog_mainEntryWidgetContainer.php +++ b/widgets/blog_main/include/container/admin_blog_mainEntryWidgetContainer.php @@ -200,14 +200,17 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta // ##### サムネールの削除 ##### for ($i = 0; $i < count($delEntryInfo); $i++){ $infoObj = $delEntryInfo[$i]; - $ret = blog_mainCommonDef::removeThumbnail($infoObj->entryId); +// $ret = blog_mainCommonDef::removeThumbnail($infoObj->entryId); if (!empty($infoObj->thumb)){ - $oldFiles = explode(';', $infoObj->thumb); - $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); + //$oldFiles = explode(';', $infoObj->thumb); + //$this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); + + // アイキャッチ画像削除 + blog_mainCommonDef::removerEyecatchImage($infoObj->entryId); } } - + // キャッシュデータのクリア for ($i = 0; $i < count($delItems); $i++){ $this->clearCacheBySerial($delItems[$i]); @@ -427,11 +430,13 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta // 次の記事IDを取得 $nextEntryId = self::$_mainDb->getNextEntryId(); - $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); - if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 - if (!empty($thumbPath)){ - $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $nextEntryId, $thumbPath, $destFilename); - if ($ret) $thumbFilename = implode(';', $destFilename); + if ($status == 2){ // 記事公開の場合のみアイキャッチ画像を作成 + $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); + if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 + if (!empty($thumbPath)){ + $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $nextEntryId, $thumbPath, $destFilename); + if ($ret) $thumbFilename = implode(';', $destFilename); + } } } @@ -456,7 +461,7 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta $reloadData = true; // データの再ロード // ##### サムネールの作成 ##### - $ret = self::$_mainDb->getEntryBySerial($this->serialNo, $row, $categoryRow); +/* $ret = self::$_mainDb->getEntryBySerial($this->serialNo, $row, $categoryRow); if ($ret){ $entryId = $row['be_id']; // 記事ID $html = $row['be_html']; // HTML @@ -468,7 +473,7 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta } else { $ret = blog_mainCommonDef::removeThumbnail($entryId); } - } + }*/ // キャッシュデータのクリア $this->clearCacheBySerial($this->serialNo); @@ -535,11 +540,25 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta // サムネール画像を取得 $thumbFilename = ''; if (($this->isMultiLang && $this->langId == $this->gEnv->getDefaultLanguage()) || !$this->isMultiLang){ // // 多言語対応の場合はデフォルト言語が選択されている場合のみ処理を行う - $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); - if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 - if (!empty($thumbPath)){ - $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $this->entryId, $thumbPath, $destFilename); - if ($ret) $thumbFilename = implode(';', $destFilename); + if ($status == 2){ // 記事公開の場合のみアイキャッチ画像を作成 + // コンテンツからアイキャッチ画像を作成 + $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); + if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 + if (!empty($thumbPath)){ + $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $this->entryId, $thumbPath, $destFilename); + if ($ret) $thumbFilename = implode(';', $destFilename); + } + + // 非公開ディレクトリのアイキャッチ画像をコピー + $ret = blog_mainCommonDef::copyEyecatchImageToPublicDir($this->entryId); + if ($ret){ // アイキャッチ画像をコピーした場合は、ファイル名を取得 + // 画像ファイル名、フォーマット取得 + list($destFilename, $formats) = $this->gInstance->getImageManager()->getSystemDefaultThumbFilename($this->entryId, 1/*クロップ画像のみ*/); + $thumbFilename = implode(';', $destFilename); + } + } else { // 記事非公開の場合 + // 公開ディレクトリのアイキャッチ画像を削除 + blog_mainCommonDef::removerEyecatchImageInPublicDir($this->entryId); } } @@ -559,13 +578,13 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta $ret = self::$_mainDb->updateEntryItem($this->serialNo, $name, $html, $html2, $status, $this->categoryArray, $this->blogId, ''/*投稿者そのまま*/, $regDt, $startDt, $endDt, $showComment, $receiveComment, $newSerial, $oldRecord, $otherParams); - if ($ret){ +/* if ($ret){ // コンテンツに画像がなくなった場合は、サムネールを削除 if (empty($thumbFilename) && !empty($oldRecord['be_thumb_filename'])){ $oldFiles = explode(';', $oldRecord['be_thumb_filename']); $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); } - } + }*/ if ($ret){ $this->setGuidanceMsg('データを更新しました'); @@ -574,7 +593,7 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta $this->serialNo = $newSerial; $reloadData = true; // データの再ロード - // ##### サムネールの作成 ##### +/* // ##### サムネールの作成 ##### $ret = self::$_mainDb->getEntryBySerial($this->serialNo, $row, $categoryRow); if ($ret){ $entryId = $row['be_id']; // 記事ID @@ -587,7 +606,7 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta } else { $ret = blog_mainCommonDef::removeThumbnail($entryId); } - } + }*/ // キャッシュデータのクリア $this->clearCacheBySerial($this->serialNo); @@ -637,12 +656,15 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta $this->setGuidanceMsg('データを削除しました'); // ##### サムネールの削除 ##### - $ret = blog_mainCommonDef::removeThumbnail($this->entryId); +// $ret = blog_mainCommonDef::removeThumbnail($this->entryId); // サムネールを削除 if (!empty($row['be_thumb_filename'])){ - $oldFiles = explode(';', $row['be_thumb_filename']); - $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); +// $oldFiles = explode(';', $row['be_thumb_filename']); +// $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); + + // アイキャッチ画像削除 + blog_mainCommonDef::removerEyecatchImage($this->entryId); } // キャッシュデータのクリア @@ -679,8 +701,11 @@ class admin_blog_mainEntryWidgetContainer extends admin_blog_mainBaseWidgetConta $this->setGuidanceMsg('データを削除しました'); // ##### サムネールの削除 ##### - $ret = blog_mainCommonDef::removeThumbnail($this->entryId); +// $ret = blog_mainCommonDef::removeThumbnail($this->entryId); + // アイキャッチ画像削除 + blog_mainCommonDef::removerEyecatchImage($this->entryId); + // キャッシュデータのクリア $this->clearCacheBySerial($this->serialNo); diff --git a/widgets/blog_main/include/container/blog_mainCommonDef.php b/widgets/blog_main/include/container/blog_mainCommonDef.php index d0d3477e..3fddd124 100644 --- a/widgets/blog_main/include/container/blog_mainCommonDef.php +++ b/widgets/blog_main/include/container/blog_mainCommonDef.php @@ -131,7 +131,7 @@ class blog_mainCommonDef * @param timestamp $updateDt 記事の更新日付 * @return string 画像URL */ - static function createThumbnail($srcHtml, $entryId, $updateDt) +/* static function createThumbnail($srcHtml, $entryId, $updateDt) { global $gEnvManager; global $gInstanceManager; @@ -167,7 +167,7 @@ class blog_mainCommonDef // 画像格納用のディレクトリ作成 $destDir = dirname($thumbPath); - if (!file_exists($destDir)) mkdir($destDir, M3_SYSTEM_DIR_PERMISSION, true/*再帰的*/); + if (!file_exists($destDir)) mkdir($destDir, M3_SYSTEM_DIR_PERMISSION, true); // サムネール作成 $ret = $gInstanceManager->getImageManager()->createDefaultThumb(M3_VIEW_TYPE_BLOG, $entryId, $imagePath); @@ -182,21 +182,21 @@ class blog_mainCommonDef } } return $thumbUrl; - } + }*/ /** * サムネール画像を削除 * * @param int $entryId ブログ記事ID * @return bool true=成功、false=失敗 */ - static function removeThumbnail($entryId) +/* static function removeThumbnail($entryId) { global $gInstanceManager; $thumbPath = $gInstanceManager->getImageManager()->getDefaultThumbPath(M3_VIEW_TYPE_BLOG, $entryId); if (file_exists($thumbPath)) @unlink($thumbPath); return true; - } + }*/ /** * アイキャッチ用画像のURLを取得 * @@ -216,5 +216,70 @@ class blog_mainCommonDef } return $thumbUrl; } + + /** + * アイキャッチ用画像を公開ディレクトリにコピー + * + * @param string $entryId 記事ID + * @return bool true=成功、false=失敗 + */ + static function copyEyecatchImageToPublicDir($entryId) + { + global $gInstanceManager; + + // 画像ファイル名、フォーマット取得 + list($filenames, $formats) = $gInstanceManager->getImageManager()->getSystemDefaultThumbFilename($entryId, 1/*クロップ画像のみ*/); + + // 画像を公開ディレクトリにコピー + $privateThumbDir = $gInstanceManager->getImageManager()->getSystemPrivateThumbPath(M3_VIEW_TYPE_BLOG, self::$_deviceType); + $publicThumbDir = $gInstanceManager->getImageManager()->getSystemThumbPath(M3_VIEW_TYPE_BLOG, self::$_deviceType); + $ret = cpFileToDir($privateThumbDir, $filenames, $publicThumbDir); + return $ret; + } + /** + * 公開ディレクトリのアイキャッチ用画像を削除 + * + * @param string $entryId 記事ID + * @return bool true=成功、false=失敗 + */ + static function removerEyecatchImageInPublicDir($entryId) + { + global $gInstanceManager; + + // 画像ファイル名、フォーマット取得 + list($filenames, $formats) = $gInstanceManager->getImageManager()->getSystemDefaultThumbFilename($entryId, 1/*クロップ画像のみ*/); + + // 公開ディレクトリ内の画像を削除 + $publicThumbDir = $gInstanceManager->getImageManager()->getSystemThumbPath(M3_VIEW_TYPE_BLOG, self::$_deviceType); + for ($i = 0; $i < count($filenames); $i++){ + $publicThumbPath = $publicThumbDir . DIRECTORY_SEPARATOR . $filenames[$i]; + if (file_exists($publicThumbPath)) @unlink($publicThumbPath); + } + return true; + } + /** + * 公開,非公開ディレクトリのアイキャッチ用画像を削除 + * + * @param string $entryId 記事ID + * @return bool true=成功、false=失敗 + */ + static function removerEyecatchImage($entryId) + { + global $gInstanceManager; + + // 画像ファイル名、フォーマット取得 + list($filenames, $formats) = $gInstanceManager->getImageManager()->getSystemDefaultThumbFilename($entryId, 1/*クロップ画像のみ*/); + + // 公開ディレクトリ、非公開ディレクトリの画像を削除 + $publicThumbDir = $gInstanceManager->getImageManager()->getSystemThumbPath(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType); + $privateThumbDir = $gInstanceManager->getImageManager()->getSystemPrivateThumbPath(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType); + for ($i = 0; $i < count($filenames); $i++){ + $publicThumbPath = $publicThumbDir . DIRECTORY_SEPARATOR . $filenames[$i]; + $privateThumbPath = $privateThumbDir . DIRECTORY_SEPARATOR . $filenames[$i]; + if (file_exists($publicThumbPath)) @unlink($publicThumbPath); + if (file_exists($privateThumbPath)) @unlink($privateThumbPath); + } + return true; + } } ?> diff --git a/widgets/blog_main/include/container/blog_mainEntryWidgetContainer.php b/widgets/blog_main/include/container/blog_mainEntryWidgetContainer.php index fb931f2e..56a461ed 100644 --- a/widgets/blog_main/include/container/blog_mainEntryWidgetContainer.php +++ b/widgets/blog_main/include/container/blog_mainEntryWidgetContainer.php @@ -202,14 +202,17 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer // ##### サムネールの削除 ##### for ($i = 0; $i < count($delEntryInfo); $i++){ $infoObj = $delEntryInfo[$i]; - $ret = blog_mainCommonDef::removeThumbnail($infoObj->entryId); +// $ret = blog_mainCommonDef::removeThumbnail($infoObj->entryId); if (!empty($infoObj->thumb)){ - $oldFiles = explode(';', $infoObj->thumb); - $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); + //$oldFiles = explode(';', $infoObj->thumb); + //$this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); + + // アイキャッチ画像削除 + blog_mainCommonDef::removerEyecatchImage($infoObj->entryId); } } - + // キャッシュデータのクリア for ($i = 0; $i < count($delItems); $i++){ $this->clearCacheBySerial($delItems[$i]); @@ -429,11 +432,13 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer // 次の記事IDを取得 $nextEntryId = self::$_mainDb->getNextEntryId(); - $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); - if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 - if (!empty($thumbPath)){ - $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $nextEntryId, $thumbPath, $destFilename); - if ($ret) $thumbFilename = implode(';', $destFilename); + if ($status == 2){ // 記事公開の場合のみアイキャッチ画像を作成 + $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); + if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 + if (!empty($thumbPath)){ + $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $nextEntryId, $thumbPath, $destFilename); + if ($ret) $thumbFilename = implode(';', $destFilename); + } } } @@ -458,7 +463,7 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer $reloadData = true; // データの再ロード // ##### サムネールの作成 ##### - $ret = self::$_mainDb->getEntryBySerial($this->serialNo, $row, $categoryRow); +/* $ret = self::$_mainDb->getEntryBySerial($this->serialNo, $row, $categoryRow); if ($ret){ $entryId = $row['be_id']; // 記事ID $html = $row['be_html']; // HTML @@ -470,7 +475,7 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer } else { $ret = blog_mainCommonDef::removeThumbnail($entryId); } - } + }*/ // キャッシュデータのクリア $this->clearCacheBySerial($this->serialNo); @@ -537,11 +542,25 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer // サムネール画像を取得 $thumbFilename = ''; if (($this->isMultiLang && $this->langId == $this->gEnv->getDefaultLanguage()) || !$this->isMultiLang){ // // 多言語対応の場合はデフォルト言語が選択されている場合のみ処理を行う - $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); - if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 - if (!empty($thumbPath)){ - $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $this->entryId, $thumbPath, $destFilename); - if ($ret) $thumbFilename = implode(';', $destFilename); + if ($status == 2){ // 記事公開の場合のみアイキャッチ画像を作成 + // コンテンツからアイキャッチ画像を作成 + $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html); + if (empty($thumbPath) && !empty($html2)) $thumbPath = $this->gInstance->getImageManager()->getFirstImagePath($html2); // 本文1に画像がないときは本文2を検索 + if (!empty($thumbPath)){ + $ret = $this->gInstance->getImageManager()->createSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $this->entryId, $thumbPath, $destFilename); + if ($ret) $thumbFilename = implode(';', $destFilename); + } + + // 非公開ディレクトリのアイキャッチ画像をコピー + $ret = blog_mainCommonDef::copyEyecatchImageToPublicDir($this->entryId); + if ($ret){ // アイキャッチ画像をコピーした場合は、ファイル名を取得 + // 画像ファイル名、フォーマット取得 + list($destFilename, $formats) = $this->gInstance->getImageManager()->getSystemDefaultThumbFilename($this->entryId, 1/*クロップ画像のみ*/); + $thumbFilename = implode(';', $destFilename); + } + } else { // 記事非公開の場合 + // 公開ディレクトリのアイキャッチ画像を削除 + blog_mainCommonDef::removerEyecatchImageInPublicDir($this->entryId); } } @@ -561,13 +580,13 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer $ret = self::$_mainDb->updateEntryItem($this->serialNo, $name, $html, $html2, $status, $this->categoryArray, $this->blogId, ''/*投稿者そのまま*/, $regDt, $startDt, $endDt, $showComment, $receiveComment, $newSerial, $oldRecord, $otherParams); - if ($ret){ +/* if ($ret){ // コンテンツに画像がなくなった場合は、サムネールを削除 if (empty($thumbFilename) && !empty($oldRecord['be_thumb_filename'])){ $oldFiles = explode(';', $oldRecord['be_thumb_filename']); $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); } - } + }*/ if ($ret){ $this->setGuidanceMsg('データを更新しました'); @@ -576,7 +595,7 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer $this->serialNo = $newSerial; $reloadData = true; // データの再ロード - // ##### サムネールの作成 ##### +/* // ##### サムネールの作成 ##### $ret = self::$_mainDb->getEntryBySerial($this->serialNo, $row, $categoryRow); if ($ret){ $entryId = $row['be_id']; // 記事ID @@ -589,7 +608,7 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer } else { $ret = blog_mainCommonDef::removeThumbnail($entryId); } - } + }*/ // キャッシュデータのクリア $this->clearCacheBySerial($this->serialNo); @@ -639,12 +658,15 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer $this->setGuidanceMsg('データを削除しました'); // ##### サムネールの削除 ##### - $ret = blog_mainCommonDef::removeThumbnail($this->entryId); +// $ret = blog_mainCommonDef::removeThumbnail($this->entryId); // サムネールを削除 if (!empty($row['be_thumb_filename'])){ - $oldFiles = explode(';', $row['be_thumb_filename']); - $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); +// $oldFiles = explode(';', $row['be_thumb_filename']); +// $this->gInstance->getImageManager()->delSystemDefaultThumb(M3_VIEW_TYPE_BLOG, blog_mainCommonDef::$_deviceType, $oldFiles); + + // アイキャッチ画像削除 + blog_mainCommonDef::removerEyecatchImage($this->entryId); } // キャッシュデータのクリア @@ -681,8 +703,11 @@ class blog_mainEntryWidgetContainer extends blog_mainBaseWidgetContainer $this->setGuidanceMsg('データを削除しました'); // ##### サムネールの削除 ##### - $ret = blog_mainCommonDef::removeThumbnail($this->entryId); +// $ret = blog_mainCommonDef::removeThumbnail($this->entryId); + // アイキャッチ画像削除 + blog_mainCommonDef::removerEyecatchImage($this->entryId); + // キャッシュデータのクリア $this->clearCacheBySerial($this->serialNo); -- 2.11.0