Redirecting ram:// via cacheDefaultResource not working as expected

Description

Test code


fcontent = fileRead("./testfile.txt") writedump(fcontent) directoryCreate("ram://cache", true,true) writedump(directoryList("ram://cache")) fileWrite("ram://cache/testing1.txt", fcontent) fileCopy("./testfile.txt", "ram://cache") newfcontent = fileRead("ram://cache/testing1.txt"); writedump(newfcontent) newfcontent = fileRead("ram://cache/testfile.txt"); writedump(newfcontent)

cfconfig snippet

"resourcecache":{ "class":"ortus.extension.cache.redis.RedisCache", "custom":{ "cacheKeyCaseSensitivity":"false", "database" : "0", "idleConnections":"5", "maxConnections":"50", "username":"", "password":"", "timeout":"5000", "useSSL":"false", "host":"${REDIS_ENDPOINT}", "keyprefix":"loc", "port":"6379" }, "readOnly":"false", "storage":"false" }, ..... "cacheDefaultResource":"resourcecache",

Expected output

Actual output

 

Slack discussion

Environment

None

Attachments

2

Activity

Show:
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created November 13, 2024 at 10:49 PM
Updated November 19, 2024 at 12:23 AM