1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Issue #4783 Set SEO title/description limits high. 'cache_clear_all' event added.

This commit is contained in:
Cameron
2022-06-07 17:48:29 -07:00
parent 8bf3481eaf
commit 782c51ff18
2 changed files with 5 additions and 3 deletions

View File

@@ -964,8 +964,8 @@ class news_admin_ui extends e_admin_ui
private function setSEOLimits() private function setSEOLimits()
{ {
$seoTitleLimit = (int) e107::pref('core', 'seo_title_limit', 50); $seoTitleLimit = (int) e107::pref('core', 'seo_title_limit', 100);
$seoDescriptionLimit = (int) e107::pref('core', 'seo_description_limit', 155); $seoDescriptionLimit = (int) e107::pref('core', 'seo_description_limit', 180);
$this->fields['news_meta_title']['writeParms']['counter'] = $seoTitleLimit; $this->fields['news_meta_title']['writeParms']['counter'] = $seoTitleLimit;
$this->fields['news_meta_title']['help'] = e107::getParser()->lanVars(LAN_SEARCH_ENGINES_X_LIMIT, $seoTitleLimit); $this->fields['news_meta_title']['help'] = e107::getParser()->lanVars(LAN_SEARCH_ENGINES_X_LIMIT, $seoTitleLimit);

View File

@@ -356,6 +356,8 @@ class ecache {
{ {
$path = null; $path = null;
e107::getEvent()->trigger('cache_clear_all', ['type'=>$type,'mask'=>$mask]);
if($type =='content') if($type =='content')
{ {
$this->clear(); $this->clear();