Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Liam Dilley 172 posts 402 karma points
    1 week ago
    Liam Dilley
    0

    Can not run Memory Cache Reload: Umbraco 13

    I believe I have other issues but I can not run the memory cache rebuild. It produces the following error:

    System.ArgumentOutOfRangeException, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Specified argument was out of the range of valid values. (Parameter 'length

    Stacktrace:

    at CSharpTest.Net.IO.TransactedCompoundFile.Write(UInt32 handle, Byte[] bytes, Int32 offset, Int32 length)

    at CSharpTest.Net.Storage.BTreeFileStoreV2.Update[T](IStorageHandle handleIn, ISerializer`1 serializer, T node)

    at CSharpTest.Net.Collections.LurchTable2.TryDequeue(Predicate1 predicate, KeyValuePair`2& value)

    at CSharpTest.Net.Collections.BPlusTree`2.StorageCache.Flush()

    at CSharpTest.Net.Collections.BPlusTree`2.StorageCache.Commit()

    at CSharpTest.Net.Collections.BPlusTree`2.CommitChanges(Boolean requiresLock)

    at CSharpTest.Net.Collections.BPlusTree`2.Commit()

    at Umbraco.Cms.Infrastructure.PublishedCache.ContentStore.Release(WriteLockInfo lockInfo, Boolean commit)

    • I can run database cache
    • I have tried restarting application pools, clearing out the nucache under umbraco/TEMP and others in there.

    On the production site there are issues with Panic warning when the scheduled jobs to rebuild cache occur and I am at a loss as to where to look to resolve the issue.

  • Liam Dilley 172 posts 402 karma points
    1 week ago
    Liam Dilley
    0
    public class CacheManagementController : UmbracoApiController
    {
        private readonly DistributedCache _distributedCache;
    
        public CacheManagementController(DistributedCache distributedCache)
        {
            _distributedCache = distributedCache;
        }
    
        [HttpGet]
        public IActionResult RefreshCache()
        {
            _distributedCache.RefreshAllPublishedSnapshot();
            return Ok("Cache refresh triggered successfully.");
        }
    }
    

    But running it produces the same thing

Please Sign in or register to post replies

Write your reply to:

Draft