YAFLogo

Stegothedump
12 years ago
I have the code below...

YafContext.Current.Cache.Clear();

But I'm getting a compile error, has this been removed or moved?

S

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago

I have the code below...

YafContext.Current.Cache.Clear();

But I'm getting a compile error, has this been removed or moved?

S

Originally Posted by: Stegothedump 

its

YafContext.Current.Get().Clear();

or this

this.Get().Clear();

Stegothedump
12 years ago
thanks! what is the IDataCache though?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago

thanks! what is the IDataCache though?

Originally Posted by: Stegothedump 

Its the Interface for the cache system.

Stegothedump
12 years ago
weird I'm still getting an error??

Error 5 The type or namespace name 'IDataCache' could not be found (are you missing a using directive or an assembly reference?) C:\websites\CloudWiseForum\YetAnotherForum.NET\NewUserReg\NewUser.aspx.cs 48 40 YAF

Pretty sure i have all the assemblies referenced?

S

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago

weird I'm still getting an error??

Error 5 The type or namespace name 'IDataCache' could not be found (are you missing a using directive or an assembly reference?) C:\websites\CloudWiseForum\YetAnotherForum.NET\NewUserReg\NewUser.aspx.cs 48 40 YAF

Pretty sure i have all the assemblies referenced?

S

Originally Posted by: Stegothedump 

You need to add a using to the NewUser.aspx.cs Page

using YAF.Types.Interfaces;

or

YafContext.Current.Get().Clear();

and Make sure you are referencing the YAF.Types.dll

Stegothedump
12 years ago
Thanks Watcha I had YAF.Types but not YAF.Types.Interfaces.

S