Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -89,13 +89,14 @@ class _Database extends \IPS\Output\Cache
|
||||
/**
|
||||
* Remove all expired caches
|
||||
*
|
||||
* @param boolean $truncate Truncate the table
|
||||
* @return void
|
||||
*/
|
||||
public function deleteExpired()
|
||||
public function deleteExpired( $truncate=FALSE )
|
||||
{
|
||||
try
|
||||
{
|
||||
\IPS\Db::i()->delete( 'core_output_cache', array( 'cache_expire<?', time() ) );
|
||||
\IPS\Db::i()->delete( 'core_output_cache', ( ! $truncate ? array( 'cache_expire<?', time() ) : NULL ) );
|
||||
}
|
||||
catch ( \IPS\Db\Exception $e ) { }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user