1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 09:24:04 +00:00
Commit graph

6 commits

Author SHA1 Message Date
ecc3374293 [4.x] Support database cache store tenancy (#1290) (resolve #852)
* Initial implementation (lukinovec)

* Make sure DatabaseCacheBootstrapper runs after DatabaseTenancyBootstrapper, misc wip changes

* Fix withTenantDatabases()

* Add failing test (GlobalCacheTest)

* Configure globalCache's DB stores to use central connection instead of default connection every time it's reinstantiated

* Make GlobalCache facade not cached. Even though it wasn't causing issues
in our existing tests, it likely was flaky, and making it not $cached
makes it now consistent with global_cache() - always getting a new
CacheManager from the globalCache container binding

* Add database connection assertions in GlobalCacheTest

* Run all cached resolver/global cache tests with DatabaseCacheBootstrapper

* Reset adjustCacheManagerUsing in revert() and TestCase

* Reset static $stores property

* Finalize GlobalCache-related changes

* tests: remove pointless cache TTLs

* Refactor DatabaseCacheBootstrapper

* Refactor tests

Co-authored-by: lukinovec <lukinovec@gmail.com>
2025-08-08 00:54:01 +02:00
domkrm
894965d1a7
Extend GlobalCache facade from the original facade (#495) 2020-09-18 23:18:21 +02:00
Samuel Štancl
5972364075
[3.x] Rename facades (#387)
* Remove Facade suffix from facades, fix #386

* Apply fixes from StyleCI

* Fix facade test
2020-05-03 17:59:35 +02:00
Samuel Štancl
50a77ee826 Fix some tests 2019-09-16 17:36:32 +02:00
stancl
7eba041509 Apply fixes from StyleCI 2019-09-08 15:24:12 +00:00
Samuel Štancl
dabaff1338 Remove Tenant facade, move facades to Facades 2019-09-08 17:24:03 +02:00
Renamed from src/GlobalCacheFacade.php (Browse further)