phpldapadmin/purge_cache.php

44 lines
712 B
PHP
Raw Permalink Normal View History

2009-06-30 09:22:30 +00:00
<?php
2009-06-30 09:24:29 +00:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/purge_cache.php,v 1.5 2005/02/25 13:44:06 wurley Exp $
/**
* @package phpLDAPadmin
*/
/**
*/
2009-06-30 09:22:30 +00:00
require './common.php';
include './header.php';
$purge_session_keys = array( 'schema' );
?>
<body>
<h3 class="title">Purging Caches</h3>
<br />
<br />
<br />
<center>
<?php
flush();
$size = 0;
foreach( $purge_session_keys as $key ) {
if( isset( $_SESSION[$key] ) ) {
$size += strlen( serialize( $_SESSION[$key] ) );
unset( $_SESSION[$key] );
2009-06-30 09:24:29 +00:00
}
2009-06-30 09:22:30 +00:00
}
session_write_close();
if( 0 == $size )
echo $lang['no_cache_to_purge'];
else
echo sprintf( $lang['done_purging_caches'], number_format( $size ) );
?>
</center>
</body>
</html>