Commit 09172b7
committed
fix: correct handling of generated tiles in cache
- added `generated = 0 OR generated IS NULL` filter in `tile_exists?` to exclude temporary generated tiles
- changed `cached_tiles_count` to use `exclude(generated: -1)` to ignore technical records
- unified `generated` field conditions in queries to the tiles table1 parent e09ce38 commit 09172b7
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
555 | 558 | | |
556 | 559 | | |
557 | 560 | | |
| |||
725 | 728 | | |
726 | 729 | | |
727 | 730 | | |
728 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
729 | 735 | | |
730 | 736 | | |
731 | 737 | | |
| |||
0 commit comments