mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fix #1254 use cover image first when extracting images for SEO
This commit is contained in:
parent
6a43274826
commit
8e593a9d60
2 changed files with 14 additions and 15 deletions
|
|
@ -970,6 +970,7 @@ class documentController extends document
|
|||
|
||||
//remove from cache
|
||||
Rhymix\Framework\Cache::delete('document_item:' . getNumberingPath($obj->document_srl) . $obj->document_srl);
|
||||
Rhymix\Framework\Cache::delete('seo:document_images:' . $obj->document_srl);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -1100,6 +1101,7 @@ class documentController extends document
|
|||
|
||||
//remove from cache
|
||||
Rhymix\Framework\Cache::delete('document_item:' . getNumberingPath($document_srl) . $document_srl);
|
||||
Rhymix\Framework\Cache::delete('seo:document_images:' . $document_srl);
|
||||
unset($GLOBALS['XE_DOCUMENT_LIST'][$document_srl]);
|
||||
unset($GLOBALS['XE_EXTRA_VARS'][$document_srl]);
|
||||
return $output;
|
||||
|
|
@ -1256,6 +1258,7 @@ class documentController extends document
|
|||
|
||||
// Clear cache
|
||||
Rhymix\Framework\Cache::delete('document_item:' . getNumberingPath($oDocument->document_srl) . $oDocument->document_srl);
|
||||
Rhymix\Framework\Cache::delete('seo:document_images:' . $oDocument->document_srl);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue