mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Issue #4783 Set SEO title/description limits high. 'cache_clear_all' event added.
This commit is contained in:
@@ -964,8 +964,8 @@ class news_admin_ui extends e_admin_ui
|
||||
|
||||
private function setSEOLimits()
|
||||
{
|
||||
$seoTitleLimit = (int) e107::pref('core', 'seo_title_limit', 50);
|
||||
$seoDescriptionLimit = (int) e107::pref('core', 'seo_description_limit', 155);
|
||||
$seoTitleLimit = (int) e107::pref('core', 'seo_title_limit', 100);
|
||||
$seoDescriptionLimit = (int) e107::pref('core', 'seo_description_limit', 180);
|
||||
|
||||
$this->fields['news_meta_title']['writeParms']['counter'] = $seoTitleLimit;
|
||||
$this->fields['news_meta_title']['help'] = e107::getParser()->lanVars(LAN_SEARCH_ENGINES_X_LIMIT, $seoTitleLimit);
|
||||
|
@@ -355,7 +355,9 @@ class ecache {
|
||||
function clearAll($type,$mask = null)
|
||||
{
|
||||
$path = null;
|
||||
|
||||
|
||||
e107::getEvent()->trigger('cache_clear_all', ['type'=>$type,'mask'=>$mask]);
|
||||
|
||||
if($type =='content')
|
||||
{
|
||||
$this->clear();
|
||||
|
Reference in New Issue
Block a user