【问题标题】:How to tell page cache to ignore certain URL parameters如何告诉页面缓存忽略某些 URL 参数
【发布时间】:2021-08-20 11:26:08
【问题描述】:

我们遇到了一个问题,webadapter 页面缓存被 URL 生成的不同条目填满,这些条目包含每个 URL 唯一的 gclid 参数。

此类 URL 的示例是 https://www.a1.hr/INTERSHOP/web/WFS/A1-Shop-Site/hr_HR/-/HRK/ViewStandardCatalog-Browse?campaignID=ljeto&gclid=EAIaIQobChMIiu7U2PGU8gIV2IeyCh311wBOEAEYASAAEgKQW_D_BwE&CatalogID=MobilePhones&CategoryName=MobilePhones

我们如何告诉页面缓存忽略gclid参数并为没有glcid的URL缓存结果,所以缓存键例如: https://www.a1.hr/INTERSHOP/web/WFS/A1-Shop-Site/hr_HR/-/HRK/ViewStandardCatalog-Browse?campaignID=ljeto&CatalogID=MobilePhones&CategoryName=MobilePhones

【问题讨论】:

    标签: intershop


    【解决方案1】:

    在share/system/config/cluster/webadapter.properies 文件中,您会找到一些示例代码:

    ## Defines a list of query attributes which are to be ignored
    ## in the page cache lookup. Mainly intended to ignore unwanted
    ## x/y coordinates, which are included with image button clicks.
    
    # pagecache.ignore.0=submit.x
    # pagecache.ignore.1=submit.y
    

    使用pagecache.ignore.n 应该可以解决问题。

    知识库文章在这里:https://support.intershop.com/kb/index.php/Display/27984R

    【讨论】:

      猜你喜欢
      • 2012-03-25
      • 2019-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多