Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to keep large files updates for longer time in squid

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hadi57
      last edited by

      hi

      i installed and updated macafee antivirus for one of my client and updated to the latest release, then i installed for another client a minute after the first client, the 1st one took like 20 minutes for update and the 2nd one took few seconds only, 2 weeks later i installed and updated for 3rd client, but the update took 20 minutes again, my question is:

      1- how to keep updates for longer period in the hard drive?
      2- is it possible to let the cached file keep updating itself so it is there when needed?

      hadi57

      1 Reply Last reply Reply Quote 0
      • A
        adrianhensler
        last edited by

        My answer to that would be to possibly make a script that pulls in that file once a day (say at 7:30am or so) or every couple days - whatever suits your squid settings and usage.

        I'm no squid expert, I'm sure there are ways to force content to stick around longer.  Hopefully someone else can offer suggestions to that effect.

        Keep in mind that if these files include virus definitions, they are likely updated daily or so anyways, so you wouldn't want to keep the stale ones in cache anyways.  A quick install of out-dated virus definitions would be pretty much useless.

        1 Reply Last reply Reply Quote 0
        • C
          chudy
          last edited by

          refresh_pattern feature plus override-expire and much more.
          http://www.squid-cache.org/Versions/v2/2.6/cfgman/refresh_pattern.html
          Its old version by the way.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.