如何令Squid每天自動清除Cache?

顯示結果從第 1 筆 到 4 筆,共計 4 筆
  1. #1
    會員
    註冊日期
    2001-12-03
    討論區文章
    191

    如何令Squid每天自動清除Cache?

    我發現我的Squid每兩天便要清除一次Cache,否則User利用Squid瀏覽網頁時就會很慢(超過1分鐘)。

    現在必須每隔兩天要清除一次Cache,我是使用Squid State1 2.4版。
    請問可那方法令Cache每天清除cache一次,另外,我的Squid 是不是有問題?



  2. #2
    進階會員 repsol 的大頭照
    註冊日期
    2001-06-17
    所在地區
    ADSL 2M/256
    討論區文章
    818
    不知道這個是不是你要的ㄟ


    vi /usr/local/squid/etc/squid.conf

    # TAG: reference_age
    # As a part of normal operation, Squid performs Least Recently
    # Used removal of cached objects. The LRU age for removal is
    # computed dynamically, based on the amount of disk space in
    # use. The dynamic value can be seen in the Cache Manager 'info'
    # output.
    #
    # The 'reference_age' parameter defines the maximum LRU age. For
    # example, setting reference_age to '1 week' will cause objects
    # to be removed if they have not been accessed for a week or
    # more. The default value is one year.
    #
    # Specify a number here, followed by units of time. For example:
    # 1 week
    # 3.5 days
    # 4 months
    # 2.2 hours
    #
    # NOTE: this parameter is not used when using the enhanced
    # replacement policies, GDSH or LFUDA.
    #
    #Default:
    # reference_age 1 year
    「遥か昔、正義に生きる悪魔の伝説があった。
    剣を取って戦い、悪魔の侵略を退けた魔剣士。
    その伝説も、やがて人々の記憶から消えて行った。

    だが2000年の時を経て、魔界はより強大になって甦る。
    圧倒的なパワーで押し寄せる魔界の軍勢。
    本格的な人間界侵攻が始まった…。

    再び訪れた人類の危機に一人の男が立ち上がる。
    伝説の魔剣士の血を引く悪魔狩人(デビルハンター)、その名はダンテ!」

  3. #3
    會員
    註冊日期
    2001-12-03
    討論區文章
    191
    # TAG: reference_age
    # As a part of normal operation, Squid performs Least Recently
    # Used removal of cached objects. The LRU age for removal is
    # computed dynamically, based on the amount of disk space in
    # use. The dynamic value can be seen in the Cache Manager 'info'
    # output.
    #
    # The 'reference_age' parameter defines the maximum LRU age. For
    # example, setting reference_age to '1 week' will cause objects
    # to be removed if they have not been accessed for a week or
    # more. The default value is one year.
    #
    # Specify a number here, followed by units of time. For example:
    # 1 week
    # 3.5 days
    # 4 months
    # 2.2 hours
    #
    # NOTE: this parameter is not used when using the enhanced
    # replacement policies, GDSH or LFUDA.
    #
    #Default:
    reference_age 2 days

    是不是改成這樣子?

  4. #4
    進階會員 repsol 的大頭照
    註冊日期
    2001-06-17
    所在地區
    ADSL 2M/256
    討論區文章
    818
    影響squid效能有蠻多的參數
    先找出慢的問題點...再來調整squid.conf的設定


    reference_age 2 days
    #The 'reference_age' parameter defines the maximum LRU age. For
    # example, setting reference_age to '1 week' will cause objects
    # to be removed if they have not been accessed for a week or
    # more. The default value is one year.
    這個參數的用意 , 是說放在cache裡的資料如果兩天之內沒有被client端access的話
    squid就會從cache中清除


    http://squid.visolve.com/squid24s1/


    這邊有很完整的doc...


    你可以看看第VI章節參考一下
    「遥か昔、正義に生きる悪魔の伝説があった。
    剣を取って戦い、悪魔の侵略を退けた魔剣士。
    その伝説も、やがて人々の記憶から消えて行った。

    だが2000年の時を経て、魔界はより強大になって甦る。
    圧倒的なパワーで押し寄せる魔界の軍勢。
    本格的な人間界侵攻が始まった…。

    再び訪れた人類の危機に一人の男が立ち上がる。
    伝説の魔剣士の血を引く悪魔狩人(デビルハンター)、その名はダンテ!」

類似的主題

  1. 請問roaming profile自動清除的問題
    作者:cpthk 所在討論版:-- Windows 討 論 版
    回覆: 8
    最後發表: 2008-03-31, 04:28 AM
  2. 如何清除Windows XP的Cache?
    作者:seiya2000 所在討論版:-- Windows 討 論 版
    回覆: 4
    最後發表: 2007-11-14, 10:59 PM
  3. 【問題】如何開機自動清除RegKey中的特定機碼?
    作者:tien7689 所在討論版:-- Windows 討 論 版
    回覆: 7
    最後發表: 2006-04-03, 08:13 AM
  4. 【求助】 如何可徹底清除Norton AntiVirus軟件~救命!!
    作者:a955414 所在討論版:-- HELP ME 電 腦 軟 硬 體 急 救 版
    回覆: 4
    最後發表: 2003-10-05, 08:07 PM
  5. 【求助】電腦會自動清除記錄??
    作者:au2002 所在討論版:-- HELP ME 電 腦 軟 硬 體 急 救 版
    回覆: 2
    最後發表: 2003-01-31, 10:46 AM

 

squid windows cache

squid windows 清除cache

squid 清除特定 cache

win squid 清除快取

windows squid cache清除

squid 清空缓存 win

squid youtube cache

清除squid for windows cache

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •