0

我有一个 .aspx 页面,它使用 ImageResizer 库来调整图像大小并保存到本地存储,并将其位置写入响应。

ImageJob image = new ImageJob(masterPath, targetPath, new ResizeSettings("width=" + imageSize));
image.CreateParentDirectory = true;
            image.Build();

diskcache 插件设置为从本地存储中删除图像,但图像没有任何反应。有任何想法吗?

<diskCache dir="C$\TestUpload\Test" autoClean="false" hashModifiedDate="true" enabled="true"
subfolders="32" cacheAccessTimeout="15000" asyncWrites="false" asyncBufferSize="10485760" />

<cleanupStrategy startupDelay="00:05" minDelay="00:00:20" maxDelay="00:05"
optimalWorkSegmentLength="00:00:04"
targetItemsPerFolder="400" maximumItemsPerFolder="1000"
avoidRemovalIfCreatedWithin="00:00:10" avoidRemovalIfUsedWithin="0.00:00:10"
prohibitRemovalIfUsedWithin="00:00:05" prohibitRemovalIfCreatedWithin="00:00:05" />
4

1 回答 1

1

DiskCache 仅适用于 URL API,不适用于托管 API。这在 DiskCache 插件描述中进行了解释。

于 2013-05-04T13:35:37.910 回答