I tried to change jira cache updating time 3600 second to 6 second using /atlassian-jira/WEB-INF/classes/crowd-ehcache.xml. But it still not working. It get 3600 seconds( 1 hour ) to update cache.How to change the cache updating time in jira?. Thanks
Are you sure you are on onDemand? I think not because you could update the files.
Anyways, for the later versions of JIRA, cache time is configured on the UI and not on crowd-ehcache.cml. Can you look under Administration > Users > User Directories.
Ah, then you're looking in the wrong place.
The database caches aren't necessarily re-read from the database - they can wander for ages. If Jira updates the database, then it automatically updates the caches too, but when I first tested SQL vs the database, I was able to see that the caches were days out of sync. That may have changed (I was looking at Jira 2.7 I think), but I still don't think it's a good idea
Also, you're looking in totally the wrong place. The cache setting you've found is JUST for user related stuff, it won't help you with any of the other data Jira caches.
Now, there is a call in the API that flushes the caches (I know Jamie's very helpful script-runner plugin can be told to call it), but even that has risks because you need Jira to be completely inactive between committing the SQL and the flush of the cache. It's ok if your SQL is buried in a script so that the gap is miniscule, and it's ok if you can be completely sure that there are no users actively updating the data.
Please stop looking for ways to mess with the database, you really shouldn't be trying this. Most of the experts here avoid it like the plague - follow their example. You really need to do this in code or you'll destroy your installation (and I'll mention the script-runner again, as that could be a massive help)
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs