Jump to content

Featured Replies

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

Link to comment
https://ipbmafia.ru/topic/26110-clear-caches-does-not-work/
Share on other sites

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' );
		}
	}

 

Link to comment
https://ipbmafia.ru/topic/26110-clear-caches-does-not-work/?&do=findComment&comment=197200
Share on other sites

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

 

Link to comment
https://ipbmafia.ru/topic/26110-clear-caches-does-not-work/?&do=findComment&comment=197218
Share on other sites
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.

Link to comment
https://ipbmafia.ru/topic/26110-clear-caches-does-not-work/?&do=findComment&comment=197219
Share on other sites

Magnificent. You are very kind, thank you very much

Link to comment
https://ipbmafia.ru/topic/26110-clear-caches-does-not-work/?&do=findComment&comment=197234
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.