public function fetchDuration(DurationProviderInterface $durationProvider): WidgetProviderInterface
{
return $this;
}
public function getDataCacheKey(DataProviderInterface $dataProvider): ?string
{
// Returns a fixed key to keep the cache working, but with controlled behavior
return 'gumDataProvider-' . md5('G1RSSFeed');
}
public function getDataModifiedDt(DataProviderInterface $dataProvider): ?Carbon
{
// Returns the current date/time to force the cache to always be refreshed
return Carbon::now();
}
So with each update from my Android client to the CMS, that is, every 5 minutes I should update this module, right? More repair that continues to use the same data as if the cache was not updated. Even getDataModifiedDt returning as it does now. Is there anything else I’m doing wrong?
When the module has a data provider, should this update happen automatically? Do I need to open the Layout and save for this to happen?
Is XTR and the Widget Sync task running in your CMS installation? Data is kept up to date in the background via XTR, if it isn’t running then you won’t see any updates.
My installation was done using Docker, so from what I understand I wouldn’t need to create a routine on my server to run xtr as one would already be configured?
I believe it is in fact something in my data provider that is not updating, because when using the native RSS ticjer module with an external RSS the updates worked normally, seeing the RSS module code is with
public function getDataModifiedDt(DataProviderInterface $dataProvider): ?Carbon
{
return null;
}
tentei fazer isso no meu modulo cutomizado, mais infelizmente sem atualização ainda.
@dan Unfortunately, so far I haven’t achieved anything. Follow my current full provider. It’s just the problem of updating that doesn’t happen, only if you open the Layout and save manually, otherwise it always displays the same content in the player.
Not yet, the documentation isn’t very helpful. I’d appreciate some guidance.
It only updates if you open and close the Layout, but not automatically with Player calls. @dan The documentation for developers could be improved. Or provide clearer guidance on how the CMS updates the contents of these modules with dates?