[Phpfreechat-svn] SF.net SVN: phpfreechat: [819] trunk/src/pfcinfo.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-10-04 09:40:52
|
Revision: 819 http://svn.sourceforge.net/phpfreechat/?rev=819&view=rev Author: kerphi Date: 2006-10-04 02:40:34 -0700 (Wed, 04 Oct 2006) Log Message: ----------- [en] New API function (pfcinfo) used to rehash (clear the cache). [10min] [fr] Nouvelle fonction dans l'API pfcinfo permettant de vider le cache (rehash). [10min] Modified Paths: -------------- trunk/src/pfcinfo.class.php Modified: trunk/src/pfcinfo.class.php =================================================================== --- trunk/src/pfcinfo.class.php 2006-10-04 09:34:53 UTC (rev 818) +++ trunk/src/pfcinfo.class.php 2006-10-04 09:40:34 UTC (rev 819) @@ -56,6 +56,10 @@ return $users; } + /** + * Return the last $nb message from the $channel room. + * The messages format is very basic, it's raw data (it will certainly change in future) + */ function getLastMsg($channel, $nb) { // to be sure the $nb params is a positive number @@ -70,6 +74,16 @@ $lastmsg_raw = $container->read($channel, $lastmsg_id-$nb); return $lastmsg_raw; } + + /** + * Rehash the server config (same as /rehash command) + * Usefull to take into account new server's parameters + */ + function rehash() + { + $destroyed = $this->destroyCache(); + return $destroyed; + } } -?> +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |