You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method that's meant to check the cache for FileShortcodeProvider and ImageShortcodeProvider will always return an empty string unless you allow session grant.
In CMS4, I think session grant was enabled by default so this wasn't a problem.
Module version(s) affected
2.2.0, but probably all version of 2
Description
The method that's meant to check the cache for
FileShortcodeProvider
andImageShortcodeProvider
will always return an empty string unless you allow session grant.In CMS4, I think session grant was enabled by default so this wasn't a problem.
silverstripe-assets/src/Shortcodes/FileShortcodeProvider.php
Lines 137 to 150 in ff5e8a7
How to reproduce
die('cache hit');
statement in thisif
clausesilverstripe-assets/src/Shortcodes/ImageShortcodeProvider.php
Lines 59 to 64 in ff5e8a7
Expected results: I hit the die statement.
Actual: My cache check always returns a blank string and I regenerate the short code each time.
Possible Solution
No response
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)Pull request
The text was updated successfully, but these errors were encountered: