1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-22 05:14:04 +00:00
Commit graph

15 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
c32f229dd5 Refactor more old code and get tests to pass 2020-05-13 04:51:37 +02:00
Samuel Štancl
86a98b2bc8 Queue tests 2020-05-11 05:22:55 +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
88fbd9779d Add default value 2019-09-21 20:44:58 +02:00
Samuel Štancl
8f2beb2d2e Add missing \ 2019-09-19 20:48:37 +02:00
Samuel Štancl
f0dd99f099 Facade tests 2019-09-19 20:41:00 +02:00
Samuel Štancl
cc5822e230 Better Tenant facade 2019-09-19 20:09:06 +02:00
Samuel Štancl
8565cc7acc Get multiple envs (redis/db) to run correctly 2019-09-17 19:39:57 +02:00
Samuel Štancl
524530c8d5 TenantDatabaseManagerTest fully passes now 2019-09-17 18:57:19 +02:00
Samuel Štancl
50a77ee826 Fix some tests 2019-09-16 17:36:32 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI (#126) 2019-09-11 17:37:02 +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