Skip to content

Commit

Permalink
[Update] Reset level credit after destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-hai committed Dec 15, 2017
1 parent a93cc98 commit f7a6b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litespeed-cache/inc/media.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ private function _img_optimize_rescan()
private function _img_optimize()
{
$_credit = (int) $this->summary_info( 'credit' ) ;
$img_taken = (int) $this->summary_info( 'img_taken' ) ;
$credit_recovered = (int) $this->summary_info( 'credit_recovered' ) ;

LiteSpeed_Cache_Log::debug( 'Media preparing images to push' ) ;

Expand Down Expand Up @@ -1303,7 +1303,7 @@ private function _img_optimize()
* Check if need to test run ( new user only allow 1 group at first time)
* @since 1.6.6.1
*/
if ( $this->_img_total && ! $img_taken ) {
if ( $this->_img_total && ! $credit_recovered ) {
LiteSpeed_Cache_Log::debug( 'Media: test run only allow 1 group ' ) ;
break ;
}
Expand Down

0 comments on commit f7a6b75

Please sign in to comment.