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

jmdobry / angular-cache / 274 / 2
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: 3.1.0
DEFAULT BRANCH: master
Ran 09 Oct 2014 02:18PM UTC
Files 1
Run time 2s
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

09 Oct 2014 02:15PM UTC coverage: 92.139% (-1.0%) from 93.11%
274.2

Pull #131

travis-ci

CedricGatay
Added a flag to allow storing promises

Classical use of cache:true in $http / $resources consists in storing the promise immediately.
By default angular-cache does not work this way and store the resolved value of the promise when it returns.

This is an annoying behavior change : 
 
 * imagine you've got a query taking 100ms to answer (slow backend/network)
 * your frontend calls the $resource twice in a 90ms timespan
 * you will do two requests instead of using the first promise to resolve the second call

This patch (against 2.x.x branch) adds a flag allowing to store the promise and let $resource do its job when the promise returns.
Pull Request #131: Added a flag to allow storing promises

504 of 547 relevant lines covered (92.14%)

80.18 hits per line

Source Files on job 274.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 274
  • Travis Job 274.2
  • 4178481c on github
  • Prev Job for on v2 (#266.2)
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