Skip to main content
Solved

Feature Reader how to disable cache when running from console?

  • October 14, 2025
  • 7 replies
  • 63 views

pir
Participant
Forum|alt.badge.img+2
  • Participant
  • 3 replies

FME 2021.2.6 (no possibility to update)

I have a complex FME workspace with about 10 Feature Readers for different databases. For development, it’s essential to use feature caching. However, when running the workspace, the caching must be turned off. My current method to release an update:

  1. Update the dev-workspace
  2. Copy the dev-workspace to the production location
  3. Open the production workspace and disable caching for each Feature Reader manually
  4. Launch the production workspace through a .bat file (that executes multiple procedures, one of them being the workspace)

I would much prefer to pass “enable feature caching” as a parameter in the .bat file to avoid opening and alterting the readers everytime I update the workspace. Am I missing out on a more efficient option here?

 

I could probably pass the timeout time as a user parameter and set it to a very low value (e.g., 1s). However, I assume this will severely impact performance, so I want to turn off caching all the way. Please correct me, if I’m wrong.

Best answer by nielsgerrits

Isn’t this about feature caching for the entire workspace? This is saved in the fmw which is a text file you can edit before running. Replace of a string.

#!   ENABLE_DATA_CACHING="Yes"

#!   ENABLE_DATA_CACHING="No"

Same for the enable data feature cache checkbox:

#!     <XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="YES"/>

#!     <XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="NO"/>

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • 281 replies
  • October 14, 2025

🤔Hi ​@pir Could you make a copy of the readers in your workspace and have one featurereader copy for dev runs on the dev machine with Cache on and the other to off. With a tester testing for the dev machine name (or something that identifies the Dev Machine) you can run with cache turned on if in Dev machine or run the one with cache turned off if not on dev machine.

Hope that helps!
 

 


pir
Participant
Forum|alt.badge.img+2
  • Author
  • Participant
  • 3 replies
  • October 14, 2025

Thanks, this seems like a working solution that I didn’t think of!
It will clutter my already complex workspace even more though as I am reading roughly 10 different feature classes from each of the 10 different feature readers. And, I will have to add all the connections going to the correct transformers from there. If there’s a simpler solutions, help would still be much appreciated.


crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • 281 replies
  • October 14, 2025

@pir I hear you. Can you split up into two workbenches and use a workspacerunner? One for On Dev and one for Deployed?
That might save you from having to copy and connect a whole bunch of transformers.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • Best Answer
  • October 14, 2025

Isn’t this about feature caching for the entire workspace? This is saved in the fmw which is a text file you can edit before running. Replace of a string.

#!   ENABLE_DATA_CACHING="Yes"

#!   ENABLE_DATA_CACHING="No"

Same for the enable data feature cache checkbox:

#!     <XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="YES"/>

#!     <XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="NO"/>


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3434 replies
  • October 14, 2025

 

I think they’re talking about this option, not workspace feature caching


crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • 281 replies
  • October 14, 2025

I assumed it was the caching checkbox. And XFORM_PARM PARM_NAME=”ENABLE_CACHE” looks like the correct answer here. Much better than my suggestion!
 

 


pir
Participant
Forum|alt.badge.img+2
  • Author
  • Participant
  • 3 replies
  • October 14, 2025

Isn’t this about feature caching for the entire workspace? This is saved in the fmw which is a text file you can edit before running. Replace of a string.

#!   ENABLE_DATA_CACHING="Yes"

#!   ENABLE_DATA_CACHING="No"

Same for the enable data feature cache checkbox:

#!     <XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="YES"/>

#!     <XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="NO"/>

Thank you, this is a great answer.

<XFORM_PARM PARM_NAME="ENABLE_CACHE" PARM_VALUE="YES"/>

is what I was looking for. So I can write a short script that copies the workspace to the production locaton and replaces this text.