How to Flush the Cache in My Workflow?

This topic was automatically generated from Slack. You can find the original thread here.

how do I flush the cache in my workflow?

To flush the cache in your Pipedream workflow, you can use a Data Store to manage your cached data and clear it when needed. Here’s an example of how you can set up a Data Store and clear it to flush the cache: 1. Set up a Data Store: First, create a Data Store in your workflow to store your cached data. 2. Clear the Data Store: Use the clear method to delete all records in the Data Store, effectively flushing the cache. Here’s an example of how you can implement this in a Pipedream component: ```
export default defineComponent({ props: { data: { type: “data_store” }, }, async run({ steps, $ }) { // Clear all records from the Data Store to flush the cache await this.data.clear(); return “Cache flushed successfully”; }, });

There isn’t a way to clear the cache for a workflow. Are you facing issues with it?

Yes. This workflow keeps writing the Create_Main_Page step with an old version of the config.

Have you tried duplicating the step and removing the original one?

no, thats a good idea. brb

well, that sent me down a rabbit hole that hasn’t went well

now my code that worked previously…and that is working in other steps is failing with an odd message

In a meeting at the moment but will hop onto this ASAP

Thank you. For now I just reverted to the last known working version and will go from there

It appears it may be the size of the html I am trying to upload via ftp

Oh, it it crashing when the file is too large?

Yes. I resolved the issue by changing the code. Is it a workflow memory issue?

My apologies for the delayed response

It could be, do you have a screenshot of the error?