Problem/Motivation

#2231595: Add a cache backend that checks an inconsistent cache, then falls back to a consistent cache backend added a new cache backend with some phpunit test coverage but without a test using the generic cache backend unit test base.

Proposed resolution

Add ChainedFastBackendUnitTest that extends the generic cache backend unit test.

Remaining tasks

User interface changes

API changes

CommentFileSizeAuthor
ChainedFastBackendUnitTest.patch1.12 KBolli

Comments

olli queued ChainedFastBackendUnitTest.patch for re-testing.

berdir’s picture

Why not use a memory backend for the fast one?

olli’s picture

I don't remember why I chose to use the php backend. Maybe because memory backend doesn't use microtime() or maybe because php backend seems more similar to the apcu backend. Do you see a problem with using the php backend?

berdir’s picture

Status: Needs review » Closed (duplicate)

Thanks for your work here, I decided to merge this into #2386161: ChainedFastBackend doesn't set 'expires' and 'tags' when writing to fastBackend and extend it as written there. Closing this as a duplicate.