Skip to main content
Open

Update Cache'd Objects in Reader After Changes are Made to a File

Related products:FME Form
  • September 11, 2019
  • 2 replies
  • 15 views
danilo_fme
alexbiz
claudia.tse
  • danilo_fme
    danilo_fme
  • alexbiz
    alexbiz
  • claudia.tse
    claudia.tse

ev_robin
Contributor

I love using feature caching in FME whenever I can. I find it's the easiest way for me to test whether my transformation is working correctly. Sometimes I am testing a workspace to see if it will filter objects the way I expect. So I might make changes to a database or a file after I have features cached. If I run the workspace using caching, it won't load new features, because they are cached. Even if I say "Run just this", I get an updated feature in the inspector on that reader, but not on the next transformer. So the rest of my cached workspace runs the same as before even though there's a different feature up the pipe.


I know I can get what I'm asking for just by renaming a transformer, if I'm using a SQLReader or FeatureReader. But I'd like to have an option for any type of reader where I can do something like right click and clear cached values. That way on any reader, I can update a feature without updating the rest of the workspace. I don't know of a way to do this now, but I'm definitely not an expert.

2 replies

whkarto
Contributor
Forum|alt.badge.img+14
  • Contributor
  • November 8, 2019

The easiest way might be, just to add a new entry to the Run menu "clear Caches" that deletes every existing cache. The comfortable way of dealing with this issue would be some mechanism that checks if the source data has been updated since last cached. (e.g. by time compare of file creation date). In case it is, all subsequent caches must be turned to outfashioned (yellow)


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 10, 2024
The following idea has been merged into this idea:

All the votes have been transferred into this idea.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings