jbbarth / redmine_better_crossprojects

Temporary plugin to handle usability problems discussed on redmine.org #5920
http://www.redmine.org/issues/5920
12 stars 8 forks source link

How is the data in the table updated? #16

Closed tantic closed 5 years ago

tantic commented 5 years ago

Hello,

first of all thanks very much for this plugin this is exactly what I was looking for.

I installed it on a local environment and before installing it on other environments, i would like to know how the data are updated in the table especially the columns "activity", "demand" and "users". I added some users and demands in a project but this datas don't get updated. Here is a screenshot of my project in the table

capture du 2018-10-23 13-40-14

But on another environment I managed to have values on those columns so I don't understand how it works. Is there any cron or something to set?

nanego commented 5 years ago

Hello The plugin uses a caching strategy in order to improve performances. Columns Activity, Issues and Users are updated only once per day (at midnight) or when a new project is created. Glad to know this plugin is useful for you.

tantic commented 5 years ago

Great, ok thanks! I was wondering if it could be a problem with lot's of projects but this seems to be a good solution. Is there a mechanism to update this manually on demand or to flush the cache?

nanego commented 5 years ago

Sure. You can use Rails.cache.clear to flush cache files.

tantic commented 5 years ago

ok cool, thanks very much!