Geta / geta-optimizely-hotspotseditor

1 stars 0 forks source link

Version dependency and HotSpotContainer content Caching issue #4

Open vshirke1993 opened 1 year ago

vshirke1993 commented 1 year ago

First of all thank you for this amazing package. It really helped a lot.

I was using Episerver.CMS 12.22.0 and getting some dependency errors while installing Geta.Optimizely.HotspotEditor 1.0.0 nuget pkg.

It is possible to have updated version which support current Episerver.Cms version.

Also, My hotspot container data is getting cache and I am not able to see updated hotspot container.

It will really help if you resolve this.

Thanks

vshirke1993 commented 1 year ago

Any update on this? I am updating content in hotspot container block but every time I am trying to fetch content from hotspot container, it is showing the cache version not the latest version.

It seems like we are using contentloader instead of content repository.

    public IContent? Content
    {
        get
        {
            if (_content == null && !string.IsNullOrEmpty(Link) && ContentReference.TryParse(Link, out var result))
            {
                ContentLoader.Service.TryGet<IContent>(result, out _content);
            }

            return _content;
        }
    }