Skip to content

Commit 41d6fcc

Browse files
Ahmed ElywaAhmed Elywa
authored andcommitted
Fix L1 cache key to include all API-affecting parameters
The L1 cache was missing critical parameters (shafaq, tune, midnightMode, latitudeAdjustmentMethod, adjustment) that affect prayer time calculations. This caused users with different settings to receive cached data from other users, resulting in wrong prayer times. New L1 key format: pt:{location}:{method}:{school}:{shafaq}:{tune}:{midnightMode}:{latAdjMethod}:{adjustment}:{yearMonth} Also added comprehensive test suite (47 tests) covering all cache scenarios.
1 parent c797a81 commit 41d6fcc

File tree

4 files changed

+918
-62
lines changed

4 files changed

+918
-62
lines changed

0 commit comments

Comments
 (0)