I am using Dnn 4.8.4
To clear cache I tried the following , both doesnt works for me
1 SynchronizeModule() -- Obsolete . This method is depreciated it says
2 Dim modSett As New DotNetNuke.Entities.Modules.ModuleController
modSett.SynchronizeModule() -- Access Of Shared Member,Constant member,enum ... qualifying expression will not be evaluated it says
Actually my scenario was
I am using Dnn Table "ModuleSettings"
To Get data from table I used
Dim modSett As New DotNetNuke.Entities.Modules.ModuleController
sett = modSett.GetModuleSettings(Me.ModuleId)
( This works fine but Issue comes when I update data in "ModuleSettings" table from Database instead of Codebehind)
If I update "ModuleSettings" Table from DataBase instead of code behind then Cache was not cleared , so GetModuleSettings still gives Old data, Its not getting from DataBase . Its getting from cache