Jump to content

Approval Queue Count

Tom Irons

Recommended Posts


On 08.03.2016 at 3:56 AM, Hulu said:

But when I refresh the page, it is incorrect.

You need wait 15 minutes.


			$approvalQueueCount = \IPS\Data\Cache::i()->getWithExpire( 'modCpApprovalQueueCount_' . \IPS\Member::loggedIn()->member_id, TRUE );
		catch ( \OutOfRangeException $e )
			$approvalQueueCount = \IPS\Content\Search\Query::init()->setHiddenFilter( \IPS\Content\Search\Query::HIDDEN_UNAPPROVED )->count();
			\IPS\Data\Cache::i()->storeWithExpire( 'modCpApprovalQueueCount_' . \IPS\Member::loggedIn()->member_id, $approvalQueueCount, \IPS\DateTime::create()->add( new \DateInterval( 'PT15M' ) ), TRUE );

You can report as bug.

Link to comment
Share on other sites

Yea, ticket 935927 was handled by me..

The issue was: 


When you create a new topic and you hide it via the moderation options checkbox on the right side of the create form,the approval count will be increased, but it won' t be shown on the approval modcp page and also not on the hidden content page. The issue is that the first post of the topic isn't set to queued=2


This was fixed for 4.1.9 ^_^

Link to comment
Share on other sites

  • 4 weeks later...


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...