1
0
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:
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()
{
$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);

View File

@@ -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();