<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Programmatically clearing or syncing Data Source Manager cache?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f146e5e9f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f146e5e9f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/7f146e5e9f/</id><updated>2025-05-23T12:47:54.134000Z</updated><subtitle>Recent posts to Programmatically clearing or syncing Data Source Manager cache?</subtitle><entry><title>Programmatically clearing or syncing Data Source Manager cache?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f146e5e9f/?limit=25#79da" rel="alternate"/><published>2025-05-23T12:47:54.134000Z</published><updated>2025-05-23T12:47:54.134000Z</updated><author><name>kuegerls</name><uri>https://forge.codesys.com/u/kuegerls/</uri></author><id>https://forge.codesys.comf70e38c4d11841282eba0ad009d873ef0d4f584a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;is there a way to programmatically clear the cache of the Data Source Manager in CODESYS so that variable values are re-synchronized from the OPC UA server (Symbol Configuration with OPCUA features)?&lt;/p&gt;
&lt;p&gt;Alternatively, is it possible to trigger a manual synchronization of data source variables from within the application code at runtime?&lt;/p&gt;
&lt;p&gt;Here’s the situation:&lt;br/&gt;
A variable is first written by the OPC UA client to the server in one state of a state machine and changes to another state – so the initial communication works.&lt;br/&gt;
Later, the server changes the variable value, but the client does not receive or reflect the updated value, unless the variable is actively written again.&lt;/p&gt;
&lt;p&gt;I’m looking for a way to force the client (data source manager) to re-read or refresh the variable state from the server, possibly by clearing the internal cache or triggering a sync.&lt;/p&gt;
&lt;p&gt;Any ideas or suggestions would be greatly appreciated!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>