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

woothemes / woocommerce / 3985 / 2
21%
master: 53%

Build:
Build:
LAST BUILD BRANCH: discount-calculation
DEFAULT BRANCH: master
Ran 24 Aug 2015 07:11PM UTC
Files 126
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

24 Aug 2015 07:06PM UTC coverage: 21.416%. First build
WP_VERSION=4.3 WP_MULTISITE=0

push

travis-ci

georgestephanis
Optimization. Don't call `get_post_meta` 17+ odd times.

As @pmgarman remarked here:
https://pmgarman.me/blog/woocommerce-and-coupon-_used_by-logging/ — for
very large values of postmeta, when using memcached that cannot handle
data stores of over 1M, the store seems to fail at pulling it back in,
resulting in large query results on each call.

At the least, this change should avoid those cache misses and
re-queries, although I do feel that not being able to keep the cached
in php’s memory and losing it in the cache is indeed a failing here of
the object cache plugin.

Still, this should have some optimizations, as we’re caching the data
right here, closer to usage.

5022 of 23450 relevant lines covered (21.42%)

1.18 hits per line

Source Files on job 3985.2 (WP_VERSION=4.3 WP_MULTISITE=0)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3985
  • Travis Job 3985.2
  • 6ef4cf0d on github
  • Next Job for WP_VERSION=4.3 WP_MULTISITE=0 on issues/8482 (#3987.17)
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