Home Server
New Blog Posts: Merging Reports - Part 1 and Part 2

Another problem with changing WebCachePath

edited November 2003 in Server
We're using WebTier on a server with virtual servers (like
customer1.ourproduct.com and customer2.ourproduct.com). Instead of setting
the WebCachePath and WebModuleURI to www.ourproduct.com/whatever, I'm
setting it on the fly for every request. This is working fine for the
running of reports. Whenever a user of customer2.ourproduct.com runs a
report, all the links in the frameset and in the frames point to
customer2.ourproduct.com. However it doesn't always work for the print
(PDF) button. The URL for the print button in the nav frame is correct, and
when you click it, it brings up a new window pointing to web tier on the
customer2.ourproduct.com website. However, the URL in the tag often points to another server
(customer1.ourproduct.com, for example).

I'm guessing that the object that creates this intermediate page with the
tag is getting reused and doesn't pick
up the value of WebCachePath from the TrsWebTier every time. Is this a
reasonable theory? Any idea what I can do to fix this?

--
Nathan Sutcliffe
nsutcliffe at speedlinesolutions period com

Comments

  • edited November 2003

    There is a global WebCacheManager called gWebCacheManager that the WebTier
    uses. The WebTier initializes the WebCacheManager.WebCachePath and
    CacheDirectory settings one time - upon startup.

    Try setting gWebCacheManager.WebCachePath

    uses
    rsWebCacheManager;

    gWebCacheManager.WebCachePath := myWebTier.WebCachePath;







    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2003
    > Try setting gWebCacheManager.WebCachePath


    AHA! That did it. Thanks.

    --
    Nathan Sutcliffe
    nsutcliffe at speedlinesolutions period com
This discussion has been closed.