I tried it and then in cache_utils.php added:
echo $cache_lifetime;
And it still show me 3600.
Maybe because file cache_utils.php is called in global.php.
And in index.php its like that:
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
Maybe I could remove from globals.php
include_once(ROOT_PATH.'includes/cache_utils.php');
And add at the end of session.php
if ($user_info['user_level'] == GUEST)
{
$cache_lifetime = 300; //twice as long then for members
}
include_once(ROOT_PATH.'includes/cache_utils.php');