| Server IP : 180.180.241.3 / Your IP : 216.73.216.216 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_xmap/classes/ |
Upload File : |
<?php
/**
* $Id: XmapCache.php 95 2010-04-14 18:38:36Z guilleva $
* $LastChangedDate: 2010-04-14 12:38:36 -0600 (Wed, 14 Apr 2010) $
* $LastChangedBy: guilleva $
* Xmap by Guillermo Vargas
* a sitemap component for Joomla! CMS (http://www.joomla.org)
* Author Website: http://joomla.vargas.co.cr
* Project License: GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
class XmapCache {
/**
* @return object A function cache object
*/
function &getCache( &$sitemap ) {
$cache = &JFactory::getCache('com_xmap_'.$sitemap->id);
$cache->setCaching($sitemap->usecache);
$cache->setLifeTime($sitemap->cachelifetime);
return $cache;
}
/**
* Cleans the cache
*/
function cleanCache( &$sitemap ) {
$cache =&XmapCache::getCache( $sitemap );
if (class_exists('JFactory')) {
return $cache->clean();
} else {
return $cache->clean( $cache->_group );
}
}
}