Page object caching bugfix

This commit is contained in:
Len Kranendonk 2004-04-26 07:52:17 +00:00
parent d62ae52d83
commit 6bd432e569

View file

@ -493,7 +493,7 @@ sub getPage {
# Fetch the correct pagetree from cache
$cache = WebGUI::Cache->new('root-0','PageTree-'.$session{config}{configFile});
$tree = $cache->getDataStructure;
$tree = $cache->get;
# If the tree is cached then use it.
if (defined $tree) {
@ -649,7 +649,7 @@ sub recachePageTree {
# Cache complete forrest.
$cache = WebGUI::Cache->new('root-0','PageTree-'.$session{config}{configFile});
$cache->setDataStructure($forrest);
$cache->set($forrest);
return "";
}