elliotcondon/acf — pull request #135 by doginthehat (2013-08-15 00:58:57+00:00)
Title: Transient cache for Post Object field.

@elliotcondon

Alright, take two on this pull request.

* Moved field override before the section loading the data (otherwise it doesn't run when loading from cache)

* Wrapped data loading section with a 30s transient cache

Seems git is getting *really* confused with the diff if I indent the the data loading code within the transient cache `if {}` check . Not sure why, but I overcame my developer OCD and left that out. Feel free to indent it all pretty again :)

The cache is based on the field key as the settings may be different between fields of the same type.