Autoclear Cache Option

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
ArcdeSeel
Posts: 13
Joined: October 25th, 2016, 1:32 am

Autoclear Cache Option

Post by ArcdeSeel »

So, I have a folder on my home computer that, when substituted for the Wesnoth data folder, causes Wesnoth to always reload its data when it restarts (i.e. clear its cache).
I also have some dubious memories of happening an option for that and setting it some months ago.

I'm on a faraway device and would like to have that same behavior, but I can't find the option. Does anyone know where it is?
Shiki
Developer
Posts: 348
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Autoclear Cache Option

Post by Shiki »

I am not aware of such an option. But you can delete the contents of the cache folder every time you start wesnoth.

On Linux I recall two possibilites for this

Code: Select all

create the file /usr/local/bin/wesnoth and give it execution permissions:

#!/bin/bash
rm -f ~/.cache/wesnoth/*
/usr/bin/wesnoth (or similar, the command 'whereis wesnoth' will tell you the correct path )
or, if it's enough if the cache gets cleared after reboot, you can store it in a ramdisk:

Code: Select all

add a line in /etc/fstab:
tmpfs                   /home/ArcdeSeel/.cache/wesnoth/     tmpfs   size=50M,nodev,nosuid,noexec   0 0
For other OS this won't work, but I think you get the idea.
Try out the dark board theme.
SoftSilkLionMilk
Posts: 3
Joined: December 7th, 2022, 2:13 am

Re: Autoclear Cache Option

Post by SoftSilkLionMilk »

--nocache
Post Reply