How to disable local (on-disk) caching of cloud files by OS

71861387 5 Reputation points
2023-08-25T09:50:22.4133333+00:00

Hi,

In the context of sync provider built on top of windows cloud files API, we want to disable caching of data transferred to OS as part of placeholder hydration. In other words, once sync provider transfers the data as part of hydration during OnFetchData callback invocation, the platform should fulfill the client application read request with the data provided but should not store it on-disk as part of placeholder file. The sync provider will store the data in its own cache. Is it possible to configure platform for such behaviour ?

Thanks,
Nishit

Windows development | Windows API - Win32
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2023-08-28T08:00:36.16+00:00

    CF_HYDRATION_POLICY_MODIFIER_STREAMING_ALLOWED
    0x0002

    This policy modifier grants the platform the permission to not store any data returned by a sync provider on local disks.

    The flag does not work, and I can reproduce with CloudMirror.

    please open an incident at link https://developer.microsoft.com/en-us/windows/support/?tabs=Contact-us and please choose the 'System Services Development - Cloud Filter API' for Windows SDK for this issue. In-addition, if the support engineer determines that the issue is the result of a bug the service request will be a no-charge case and you won't be charged.

    User's image

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.