[Automattic/Edit-Flow] 10bd70: Clean the post cache after using `$wpdb->update()`

0 views
Skip to first unread message

GitHub

unread,
Jan 2, 2014, 1:51:52 PM1/2/14
to edit...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/Automattic/Edit-Flow
Commit: 10bd7021af35bf7ac2b42b208850eef31269eda9
https://github.com/Automattic/Edit-Flow/commit/10bd7021af35bf7ac2b42b208850eef31269eda9
Author: Daniel Bachhuber <d...@danielbachhuber.com>
Date: 2013-12-31 (Tue, 31 Dec 2013)

Changed paths:
M modules/calendar/calendar.php

Log Message:
-----------
Clean the post cache after using `$wpdb->update()`

On setups with a persistent object cache, the post cache needs to be cleared upon data alteration. Otherwise, future requests / transformations could use stale cache data.


Commit: 09103ef7b0c43946342c2f677534ef3dcd7c2630
https://github.com/Automattic/Edit-Flow/commit/09103ef7b0c43946342c2f677534ef3dcd7c2630
Author: Daniel Bachhuber <d...@danielbachhuber.com>
Date: 2013-12-31 (Tue, 31 Dec 2013)

Changed paths:
M modules/calendar/calendar.php

Log Message:
-----------
Persist the current value for the `post_date` field when a post is updated.

In `wp_update_post()`, core will reset the `post_date` field if the post currently has a status of `draft`, `pending` or `auto-draft`.
The Edit Flow calendar uses the `post_date` field as the canonical reference for the post's position on the calendar.
To prevent the post from moving to the current date when it's updated, we need to persist the `post_date` value for the post.


Commit: 751e67ad70cf3aad0a47d6d1e2972d55d544f739
https://github.com/Automattic/Edit-Flow/commit/751e67ad70cf3aad0a47d6d1e2972d55d544f739
Author: Daniel Bachhuber <d...@danielbachhuber.com>
Date: 2013-12-31 (Tue, 31 Dec 2013)

Changed paths:
M readme.txt

Log Message:
-----------
Update readme with bugfix mention


Commit: 0431105ef36d73bd6a24a01beefc745fdb0d2a73
https://github.com/Automattic/Edit-Flow/commit/0431105ef36d73bd6a24a01beefc745fdb0d2a73
Author: Daniel Bachhuber <d...@danielbachhuber.com>
Date: 2013-12-31 (Tue, 31 Dec 2013)

Changed paths:
M modules/calendar/calendar.php

Log Message:
-----------
Don't try to persist `post_date` if `post_date_gmt` is set.

`post_date_gmt` is how WordPress tracks whether a post is scheduled or not. If a post is scheduled, Edit Flow's calendar will handle the post differently.


Commit: dbb3bf438b3fcd1167f75a93b1926dfcd792e781
https://github.com/Automattic/Edit-Flow/commit/dbb3bf438b3fcd1167f75a93b1926dfcd792e781
Author: Daniel Bachhuber <d...@danielbachhuber.com>
Date: 2014-01-02 (Thu, 02 Jan 2014)

Changed paths:
M modules/calendar/calendar.php
M readme.txt

Log Message:
-----------
Merge pull request #225 from Automattic/fix-calendar-post-date-225

Saving a change to a post removes its far-future position in the calendar


Compare: https://github.com/Automattic/Edit-Flow/compare/a6e5ab87e053...dbb3bf438b3f
Reply all
Reply to author
Forward
0 new messages