changed git call from https to git readonly
[atutor.git] / mods / mediawiki / MySQL_Auth / Auth_viaMySQL / CacheTimer_viaMySQL.php
1 <?php
2 /**
3  * CacheTimer_viaMySQL MediaWiki extension
4  *
5  * @file
6  * @ingroup Extensions
7  * @version 1.0
8  * @author John Derby Russell
9  * @link http://www.mediawiki.org/w/index.php/Extension:Auth_viaMySQL
10  */
11  
12 // Extension credits that will show up on Special:Version
13 $wgExtensionCredits['other'][] = array(
14       'name' => 'MySQL Cache Timer',
15       'version' => '1.0',
16       'author' => 'John Derby Russell',
17       'url' => 'http://www.mediawiki.org/w/index.php/Extension:Auth_viaMySQL',
18       'description' => 'Tells Wiki when to regenerate client cache for users',
19 );
20  
21 require_once(MW_INSTALL_PATH.'/MySQLActiveUser.php') ;
22  
23 /**
24  *
25  * The MySQL cache epoche timer is for when to rebuild the cache stored on the client side.
26  * This is ussually done at login.
27  *
28  */
29  
30 function CacheTimer_viaMySQL( ) {
31     global $MySQLActiveUserData ;
32     $MySQLActiveUserData->distribute_cookie_data() ;
33  
34     return $MySQLActiveUserData->active_user_login_time ;
35 }
36 ?>