Skip to content

casbin_util.go: correct Enforcer cache expiration to 1 hour - #2246

Open
000px wants to merge 1 commit into
flipped-aurora:mainfrom
000px:fix/casbin-cache-expire-time
Open

casbin_util.go: correct Enforcer cache expiration to 1 hour#2246
000px wants to merge 1 commit into
flipped-aurora:mainfrom
000px:fix/casbin-cache-expire-time

Conversation

@000px

@000px 000px commented Aug 20, 2026

Copy link
Copy Markdown

Previously set to 60*60, which is 3600 nanoseconds, causing the cache to expire immediately. Change to time.Hour to properly cache policies for 1 hour.

Previously set to 60*60, which is 3600 nanoseconds, causing the cache to expire immediately. Change to time.Hour to properly cache policies for 1 hour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant