Jump to content

Why's 'resources-cache' needed?


koragg

Recommended Posts

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 :P

Link to comment

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.

  • Like 1
Link to comment
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 xD

  • Like 1
Link to comment

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.

  • Like 2
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...