• Categories
  • Recent
  • Tags
Collapse
  1. Home
  2. Cookie 5
  3. ClearSafariCache.sh Stuck

ClearSafariCache.sh Stuck

Scheduled Pinned Locked Moved Cookie 5
24 Posts 7 Posters 9.9k Views 2 Watching
  • 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.
  • SweetPS Online
    SweetPS Online
    SweetP
    wrote on last edited by
    #21

    I have this fixed in Cookie v6.0.17

    ~
    Russell
    SweetPProductions.com

    A 1 Reply Last reply
    0
    • SweetPS SweetP

      I have this fixed in Cookie v6.0.17

      A Offline
      A Offline
      alohart
      wrote on last edited by
      #22

      @SweetP If your Cookie v6.0.17 fix works in Cookie 5.12, what would that fix be?

      1 Reply Last reply
      0
      • SweetPS Online
        SweetPS Online
        SweetP
        wrote on last edited by
        #23

        Cookie 6 doesn’t use the script anymore as it’s not necessary on Mojave+

        ~
        Russell
        SweetPProductions.com

        1 Reply Last reply
        0
        • S Offline
          S Offline
          swip
          wrote on last edited by
          #24

          The clearSafariCache.sh script takes a very long time (almost three minutes) on my machines, too, so I went ahead and optimized the find expression a bit so it won't unnecessarily descend into huge directories like com.apple.metadata.mdworker.

          Just replace the line

          find /private/var/folders \! -name "*SafariTechnologyPreview*" -name "*com.apple.Safari*" -exec rm -r {} \; 2>/dev/null
          

          with

          exec 2>/dev/null
          find /private/var/folders -name "*SafariTechnologyPreview*" -prune -o -name "com.apple.Safari*" -print0 -o -name "com.apple.*" -prune | xargs -0 rm -r
          

          Now the script finishes in less than a second.

          (I know that Cookie 6 and later do no longer use this script at all, but people who are still on older systems and cling to Cookie 5 might benefit.)

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags