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

OpenConext / OpenConext-engineblock-metadata / 130
52%

Build:
DEFAULT BRANCH: master
Ran 26 Jan 2018 03:50PM UTC
Jobs 1
Files 45
Run time 6s
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
130

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

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

930 of 1877 relevant lines covered (49.55%)

2.78 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
74
100.0
src/MetadataRepository/CachedDoctrineMetadataRepository.php
Jobs
ID Job ID Ran Files Coverage
1 130.1 (EXECUTE_COVERAGE=true) 26 Jan 2018 03:49PM UTC 0
49.55
Travis Job 130.1
Source Files on build 130
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #130
  • 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