koragg Posted December 22, 2016 Share Posted December 22, 2016 I've been wondering about this for a while now. Why's the 'resources-cache' folder even created? As far as I see it has all client files from resources and maps. But, again, why? It makes a copy of it all and adds a huge amount of MB to my server's size. Just server is 670MB, with the resources-cache it's 1.20GB and that folder just has copies of scripts. Clarification is welcome Link to comment
Mr.Loki Posted December 22, 2016 Share Posted December 22, 2016 This explains it a bit. 1 Link to comment
koragg Posted December 22, 2016 Author Share Posted December 22, 2016 Still I don't understand why players can't just download the needed files from their original directories. Link to comment
Mr.Loki Posted December 22, 2016 Share Posted December 22, 2016 I'm not sure also but guessing for safety measures? This is how i think the cache "works". Lets say its downloads directly from the resource folder, if a resource was to be modified and new players join they will download the newest version of the resource while the other players who were there before the resource was edited will still have that version. If someone were to find a way to edit scripts on a server without permission he wouldn't need to restart the script for the changed to happen, then as new players join he can do whatever he wants to the server. So i think the resource-cache are for resources that are ready to be downloaded by clients. Just my theory lol. 1 Link to comment
koragg Posted December 22, 2016 Author Share Posted December 22, 2016 9 minutes ago, loki2143 said: I'm not sure also but guessing for safety measures? This is how i think the cache "works". Lets say its downloads directly from the resource folder, if a resource was to be modified and new players join they will download the newest version of the resource while the other players who were there before the resource was edited will still have that version. If someone were to find a way to edit scripts on a server without permission he wouldn't need to restart the script for the changed to happen, then as new players join he can do whatever he wants to the server. So i think the resource-cache are for resources that are ready to be downloaded by clients. Just my theory lol. Sounds legit 1 Link to comment
Arran Posted December 22, 2016 Share Posted December 22, 2016 resource-cache folder is only for client side files. Without this seperate folder, MTA would be ruined because anyone could download any single file from the resources folder if they knew the name of the file, such as server side scripts, sqlite files, etc. Also what loki2143 said, if a client side file was edited and not immediately restarted, players who then joined would be downloading and running a different script to other players. 2 Link to comment
koragg Posted December 23, 2016 Author Share Posted December 23, 2016 Now i get it, thanks Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now