UseModWiki | RecentChanges | Preferences

Simple function to let the caller find out where the cached HTML version of the page might be located.

 sub GetHtmlCacheFile {
  my ($id) = @_;

  return $HtmlDir? . "/" . &GetPageDirectory($id) . "/$id.htm";

$HtmlDir? is usually $DataDir/html

GetPageDirectory just returns either a capital letter or 'other'. This is just how Cliff conveniently organizes the datadir and htmldir.


UseModWiki | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited March 8, 2010 7:05 pm by MarkusLude (diff)