Перейти к содержанию

Clear caches does not work


Рекомендуемые сообщения

Hello, I just updated to this latest version and Clear caches does not work

Ссылка на комментарий
Поделиться на другие сайты

Thanks, I have re-upload release. To fix this, open:

/applications/core/modules/admin/support/support.php

Find:

protected function _checkUpgrades()
	{
		return FALSE;
	}

Add after:

/**
	 * Clear caches for nulled
	 *
	 * @return void
	 */
	protected function clearCachesNull()
	{
		/* Check CSRF Key*/
		\IPS\Session::i()->csrfCheck();

		/* URL for redirect */
		$md = \IPS\Request::i()->md;
		$ct = \IPS\Request::i()->ct;

		/* Clear JS Maps first */
		\IPS\Output::clearJsFiles();
		
		/* Reset theme maps to make sure bad data hasn't been cached by visits mid-setup */
		\IPS\Theme::deleteCompiledCss();
		\IPS\Theme::deleteCompiledResources();
		
		foreach( \IPS\Theme::themes() as $id => $set )
		{
			/* Invalidate template disk cache */
			$set->cache_key = md5( microtime() . mt_rand( 0, 1000 ) );
			$set->save();
		}
		
		\IPS\Data\Store::i()->clearAll();
		\IPS\Data\Cache::i()->clearAll();
		\IPS\Output\Cache::i()->clearAll();

		\IPS\Member::clearCreateMenu();

		if( \IPS\Request::i()->isAjax() )
		{
			\IPS\Output::i()->json( 'OK' );
		}
		else
		{
			\IPS\Output::i()->redirect( \IPS\Http\Url::internal( "app=core&module={$md}&controller={$ct}" ), 'nulled_clear_caches_done' );
		}
	}

 

Ссылка на комментарий
Поделиться на другие сайты

Perfect. Is it the only problem, or is there one? I ask this because I already updated my community, and if this is just the problem, I will solve it by changing the code to this file, so as not to load everything again.

Thank you very much in advance as always. One more question. I have been reading that you no longer want to continue doing this, of nulled Invision in the new version 5. I want to ask you not to walk away, I believe that you are the only one who can correctly nullify this community. Please don't walk away

 

Ссылка на комментарий
Поделиться на другие сайты

34 минуты назад, napolion сказал:

Perfect. Is it the only problem, or is there one? I ask this because I already updated my community, and if this is just the problem, I will solve it by changing the code to this file, so as not to load everything again.

Yes that's the only problem.

Ссылка на комментарий
Поделиться на другие сайты

Magnificent. You are very kind, thank you very much

Ссылка на комментарий
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...