Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Fix server cache being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
crinis committed May 27, 2017
1 parent 8334595 commit 903b175
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sourcemod/crinisbans.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Crinisbans: Core
*
* @author crinis
* @version 0.2.2
* @version 0.2.3
* @link https://www.crinis.org
*/

Expand Down
2 changes: 1 addition & 1 deletion sourcemod/crinisbans_admins.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Crinisbans: Admins
*
* @author crinis
* @version 0.2.2
* @version 0.2.3
* @link https://www.crinis.org
*/
#pragma newdecls required
Expand Down
2 changes: 1 addition & 1 deletion sourcemod/crinisbans_bans.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Crinisbans: Bans
*
* @author crinis
* @version 0.2.2
* @version 0.2.3
* @link https://www.crinis.org
*/

Expand Down
4 changes: 2 additions & 2 deletions sourcemod/include/crinisbans.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Crinisbans: Core include
*
* @author crinis
* @version 0.2.2
* @version 0.2.3
* @link https://www.crinis.org
*/
#pragma newdecls required
Expand All @@ -13,7 +13,7 @@
#endif
#define _crinisbans_included

#define CB_VERSION "0.2.2"
#define CB_VERSION "0.2.3"
//#define _DEBUG

public SharedPlugin __pl_crinisbans =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function is_cache_expiring( $transient ) {
return true;
}

$max_time_until_expiration = (0.5 * MINUTE_IN_SECONDS * 1000) / 30;
$max_time_until_expiration = (0.2 * MINUTE_IN_SECONDS);
if ( ( time() - $transient['timestamp'] ) < $max_time_until_expiration ) {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions wordpress/crinisbans/crinisbans.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* Plugin Name: Crinisbans
* Plugin URI: https://crinis.org
* Description: Admin, Ban and Server Manager for Counterstrike: Global Offensive servers
* Version: 0.2.2
* Version: 0.2.3
* Author: crinis
* Author URI: crinis.org
*/

define( 'CB_PATH', plugin_dir_path( __FILE__ ) );
define( 'CB_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
define( 'CB_VERSION', '0.2.2' );
define( 'CB_VERSION', '0.2.3' );
require 'vendor/autoload.php';


Expand Down

0 comments on commit 903b175

Please sign in to comment.