Aaron Jorbin
a8aa7b0ca2
Cache API: introduce wp_cache_get_last_changed to improve DRY
...
One thing fairly common to the cache groups is a block of code to look to see when the cache was last changed, and if there isn't one, to set it for the current microtime(). It appears in 8 different places in core. This adds a new helper `wp_cache_get_last_changed` to DRY things up a bit.
Since `wp-includes/cache.php` isn't guaranteed to be loaded, this new function is in `wp-includes/functions.php`
Props spacedmonkey, desrosj.
Fixes #37464 .
git-svn-id: https://develop.svn.wordpress.org/trunk@38849 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-21 02:53:19 +00:00
..
2016-10-16 22:50:28 +00:00
2016-10-19 18:14:21 +00:00
2016-08-26 22:07:14 +00:00
2016-10-20 02:54:12 +00:00
2016-10-05 03:23:54 +00:00
2016-10-20 02:54:12 +00:00
2016-07-06 17:07:19 +00:00
2016-08-26 16:48:17 +00:00
2016-10-19 04:46:14 +00:00
2016-08-23 23:17:32 +00:00
2016-08-31 04:55:01 +00:00
2016-08-08 18:48:53 +00:00
2016-10-19 18:14:21 +00:00
2016-10-19 13:45:28 +00:00
2016-07-06 12:39:01 +00:00
2016-10-05 03:23:54 +00:00
2016-08-31 16:30:48 +00:00
2016-09-30 21:42:01 +00:00
2016-08-31 16:30:48 +00:00
2016-10-05 03:23:54 +00:00
2016-07-06 12:39:01 +00:00
2016-08-23 23:32:15 +00:00
2016-09-08 07:05:32 +00:00
2016-09-06 09:05:45 +00:00
2016-08-31 15:21:04 +00:00
2016-08-23 14:32:18 +00:00
2016-10-21 02:53:19 +00:00
2016-08-26 19:08:23 +00:00
2016-09-20 00:46:54 +00:00
2016-10-19 18:14:21 +00:00
2016-10-18 20:04:36 +00:00
2016-08-31 16:30:48 +00:00
2016-10-19 18:14:21 +00:00
2016-08-31 16:30:48 +00:00
2016-10-18 20:04:36 +00:00
2016-08-26 18:05:29 +00:00
2016-10-17 01:10:01 +00:00
2016-08-26 09:52:18 +00:00
2016-08-26 09:57:47 +00:00
2016-08-25 18:18:01 +00:00
2016-08-25 18:18:01 +00:00
2016-09-08 04:16:39 +00:00
2016-07-27 15:31:48 +00:00
2016-10-05 03:50:54 +00:00
2016-08-22 21:27:02 +00:00
2016-07-08 14:36:37 +00:00
2016-07-08 14:36:37 +00:00
2016-08-20 23:35:50 +00:00
2016-08-31 05:48:49 +00:00
2016-08-26 18:10:23 +00:00
2016-10-10 06:37:02 +00:00
2016-10-21 02:53:19 +00:00
2016-06-29 19:34:04 +00:00
2016-09-14 21:57:13 +00:00
2016-08-26 19:08:23 +00:00
2016-10-20 18:41:22 +00:00
2016-10-07 19:43:57 +00:00
2016-10-10 06:37:02 +00:00
2016-08-25 17:43:41 +00:00
2016-08-25 18:18:01 +00:00
2016-08-25 18:18:01 +00:00
2016-10-21 02:53:19 +00:00
2016-09-20 17:21:03 +00:00
2016-10-10 06:37:02 +00:00
2016-10-07 17:11:02 +00:00
2016-10-21 02:53:19 +00:00
2016-08-26 19:08:23 +00:00
2016-08-25 17:36:22 +00:00
2016-08-25 17:36:22 +00:00
2016-10-20 09:12:39 +00:00
2016-08-25 17:43:41 +00:00
2016-10-10 06:37:02 +00:00
2016-10-10 06:37:02 +00:00
2016-07-20 16:56:21 +00:00
2016-08-22 21:50:44 +00:00
2016-10-19 04:46:14 +00:00
2016-09-28 19:27:25 +00:00
2016-08-26 18:05:29 +00:00
2016-07-06 12:39:01 +00:00
2016-10-20 18:58:26 +00:00
2016-10-12 13:49:21 +00:00
2016-08-10 16:09:54 +00:00
2016-08-26 09:21:33 +00:00
2016-10-10 06:37:02 +00:00
2016-10-20 09:12:39 +00:00
2016-10-20 02:54:12 +00:00
2016-10-13 22:24:27 +00:00
2016-07-06 12:39:01 +00:00
2016-08-26 09:48:32 +00:00
2016-08-31 16:30:48 +00:00
2016-10-04 03:23:22 +00:00
2016-10-21 02:53:19 +00:00
2016-10-18 20:04:36 +00:00
2016-09-04 04:08:11 +00:00
2016-10-21 02:53:19 +00:00
2016-10-19 04:46:14 +00:00
2016-10-13 22:24:27 +00:00
2016-10-03 07:03:41 +00:00
2016-10-19 04:46:14 +00:00
2016-10-19 04:46:14 +00:00
2016-08-31 15:21:04 +00:00
2016-10-19 03:05:51 +00:00
2016-10-01 06:27:27 +00:00
2016-10-19 04:46:14 +00:00
2016-10-19 04:46:14 +00:00
2016-10-19 04:46:14 +00:00
2016-09-27 20:05:00 +00:00
2016-10-19 04:46:14 +00:00
2016-10-19 04:46:14 +00:00
2016-08-31 16:30:48 +00:00
2016-09-08 05:30:32 +00:00
2016-10-07 16:49:19 +00:00
2016-10-20 02:54:12 +00:00
2016-07-06 12:39:01 +00:00
2016-08-31 16:30:48 +00:00
2016-09-12 01:49:46 +00:00
2016-10-16 01:09:12 +00:00
2016-06-29 17:28:00 +00:00
2016-10-21 02:53:19 +00:00
2016-08-31 06:20:03 +00:00
2016-07-06 12:39:01 +00:00
2016-07-06 12:39:01 +00:00
2016-10-20 02:54:12 +00:00
2016-08-29 12:24:09 +00:00
2016-07-06 12:39:01 +00:00
2016-07-06 12:39:01 +00:00
2016-10-20 02:54:12 +00:00
2016-10-04 00:38:45 +00:00
2016-10-20 02:54:12 +00:00
2016-10-07 21:02:39 +00:00
2016-10-14 14:19:08 +00:00
2016-10-19 18:14:21 +00:00
2016-08-31 16:30:48 +00:00
2016-10-14 12:04:50 +00:00
2016-08-31 15:21:04 +00:00
2016-10-11 00:09:03 +00:00
2016-09-08 23:48:05 +00:00
2016-08-31 16:30:48 +00:00