View Issue Details

IDProjectCategoryView StatusLast Update
0009738New issuesServerpublic2017-10-08 03:11
ReporterSHC//SniperAssigned Toccw 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Summary0009738: [Request] refreshResource function
Description

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

TagsNo tags attached.

Users sponsoring this issue
Sponsors List Total Sponsorship = EUR 10

2017-10-07 03:06: SHC//Sniper (EUR 10)
Users sponsoring this issue (Total Sponsorship = EUR 10)

Activities

ccw

2017-10-07 16:27

administrator   ~~0026226

Please check if the console command upgrade <resource-name> does the required action

Renkon

2017-10-07 19:14

viewer   ~~0026228

I have tried using upgrade command on the console.

https://i.imgur.com/HtbiVjw.jpg

It seemed to do the trick.

ccw

2017-10-08 03:10

administrator   ~~0026231

Thanks.
Fixed in https://github.com/multitheftauto/mtasa-blue/commit/29160616d2cdea688ec6d649d9da33156cfee71a
Usage: https://wiki.multitheftauto.com/wiki/RefreshResources

Issue History

Date Modified Username Field Change