View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009738||Multi Theft Auto : San Andreas||Server||public||2017-10-07 03:04||2018-07-22 21:08|
|Target Version||Fixed in Version|
|Summary||0009738: [Request] refreshResource function|
Currently getResourceInfo meta data (such as resource/map name, author etc.) does not get updated after making changes to the meta.xml file. The only way to enforce getResourceInfo meta data to be updated is through refreshResources(true) AKA /refreshall. As this is a very resource intensive task, it would freeze our server for 10-20 minutes with 7396 maps stored on our server. Restarting the affected resource is not a solution either, as we do not start any map resource.
Manually parsing meta.xml data with XML functions may be a workaround fix but is neither elegant nor would it work in our specific case. We depend on what getResourceInfo returns and we cannot replace it with manual XML parsing, as it is way slower and causes server to take 2-3h for start-up (compared to 10 minutes regular start-up). At current state of affairs our system experiences issues with maps whose names have been changed.
This was talked about on the forum before and sadly ended nowhere. Bonsai's post pretty much sums up our problem: https://forum.mtasa.com/topic/82066-mta-need-refreshresource-function/?tab=comments#comment-813979
|Tags||No tags attached.|
|Users sponsoring this issue|
Total Sponsorship = EUR 10
2017-10-07 03:06: SHC//Sniper (EUR 10)
Please check if the console command
I have tried using upgrade command on the console.
It seemed to do the trick.