redd,
@redd@discuss.tchncs.de avatar

Is it safe to clear ~/.cache/mozilla/ while Firefox is running?

Pantherina,

No.

Zangoose,
@Zangoose@lemmy.world avatar

Maybe not while it’s running, but .cache is intended to be temporary files only so expecting files to permanently be there should be treated as a bug

Pantherina,

Your Distro should normally do that for you.

Advising for this means people will delete random cache and download stuff always.

Are multiple files in there? If yes you could add a script that only deletes files of certain age.

Takios,

I’m not aware of any distro that automatically clears a user’s .cache in their home directories. Maybe you’re thinking of /var/cache?

HiddenLayer5, (edited )
@HiddenLayer5@lemmy.ml avatar

I just map both the user cache and the /tmp directory to a RAM drive. I allocated 4 GB but in practice it never gets even close to that much, and Linux seems to not be reserving the entire 4 GB at boot so I would assume how much RAM is used depends on how much is actually in your cache.

It also defers cache and tempfile related problems to turning it off and on again.

vox, (edited )
@vox@sopuli.xyz avatar

seems like a bug in one of rhe programs you’re using.
modt software automatically manages it’s cache…
are you using build caching tools such as Mozilla sccache? These tend to create 20gb+ cache directories, especially if used with debug builds

lntl, (edited )

$ crontab -e

      • */2 * rm -rf /home/lntl/.cache
noroute,

You can also setup a cron job to periodically clean oldest files for you.

Example: @weekly find ~/.cache -type f -mtime +7 -delete

This will delete everything older than 7 days inside your cache folder.

twei,

I guess you could also Mount a tmpfs to that directory

therealjcdenton,
sunred,
@sunred@discuss.tchncs.de avatar

du -sh ~/.cache/* | sort -h

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #