• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenConext / OpenConext-engineblock-metadata / 132
52%

Build:
DEFAULT BRANCH: master
Ran 26 Jan 2018 04:16PM UTC
Jobs 1
Files 45
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
132

Pull #20

travis-ci

web-flow
Allow caching all database queries for the lifetime of a request

This commit introduces a new metadata repository as an alternative to
the regular doctrine metadata repository. It wraps the regular
doctrine metadata repository but caches the result of each distinct
query for the request lifetime. This mechanism is safe to use for
EngineBlock since it doesn't write metadata, and we're not concerned
with metadata updates during an authentication request.

In test cases, using the caching wrapper reduces the number of queries
during a single authentication request from approximately 40 to 15.

In order to use this new repository in EngineBlock, replace the
following line in engineblock.ini:

    metadataRepository.database.type = Doctrine

With:

    metadataRepository.database.type = CachedDoctrine
Pull Request #20: Allow caching all database queries for the lifetime of a request

36 of 36 new or added lines in 1 file covered. (100.0%)

956 of 1839 relevant lines covered (51.98%)

2.91 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
100.0
src/MetadataRepository/CachedDoctrineMetadataRepository.php
Jobs
ID Job ID Ran Files Coverage
1 132.1 (EXECUTE_COVERAGE=true) 26 Jan 2018 04:15PM UTC 0
51.98
Travis Job 132.1
Source Files on build 132
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #132
  • Pull Request #20
  • PR Base - master (#122)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc