Bypass cache?
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Bypass cache?
I have some cfg files I RINCLUDE which I update once in a while, however, it seems that once it is included, it is stored in some sort of cache and not redownloaded. Where can I find this cache (it's different than the map xml cache it seems)?
Is there a setting I can set so that the cfg file is downloaded every time it is included so that it is always updated? (I don't want to have to rename the cfg file every time as it is included across multiple servers)
Is there a setting I can set so that the cfg file is downloaded every time it is included so that it is always updated? (I don't want to have to rename the cfg file every time as it is included across multiple servers)
Re: Bypass cache?
It is the same. And there is no way to force downloading RINCLUDES or other resources at the moment, you'll have to clear the cache.dukevin wrote:(it's different than the map xml cache it seems)?
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Bypass cache?
So if I have two users in my server and one of them has an outdated version of the cfg file in their cache, if that person rincludes, the server downloads it from his cache and it applys the outdated one? Same visa-vera?
Re: Bypass cache?
No. If there's an outdated version in the cache, whoever has it is going to use it. I somehow get the feeling you're abusing the feature. What exactly are you doing? Clients shouldn't be doing RINCLUDES on server order at all.
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Bypass cache?
I was using it to synchronize a list of logins across multiple vps's and servers. Instead of going into the server config and updating 10 different lists, I thought RINCLUDING it meant I only had to maintain one list of logins.
Re: Bypass cache?
Ah, that's a fine use. Just adapt the script running the servers to delete the relevant .cfg files in the cache between server restarts, and set dedicated_idle so the restarts happen often enough.
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Bypass cache?
So is the cache located on the client's computer or on the server?Z-Man wrote:Ah, that's a fine use. Just adapt the script running the servers to delete the relevant .cfg files in the cache between server restarts, and set dedicated_idle so the restarts happen often enough.
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
Re: Bypass cache?
Only on the server
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Bypass cache?
What linux directory? Can't seem to find itkyle wrote:Only on the server
Re: Bypass cache?
Depends on how you run the server. It's in our 'userdata' directory (/var/games/armagetronad/ if you're using our init scripts, ~/.armagetronad of the user running the server if you start it by running 'armagetronad' in some script or simply the current directory if you're using 'make run' in the build directory) and the 'resource/automatic' subdirectory thereof.
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: luke@dashjr.org
Re: Bypass cache?
This is by design. Resources are supposed to never change. Someone (maybe me?) wrote a draft for a "LATEST" version redirector on Launchpad a while back, but I don't think it is usable...
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: Bypass cache?
Thank you for your help z-man, I modified the starter script and it worked perfectly