Funny, I contributed the cache code but failed to include a way to disable it. Some might ask, "why would you ever want to disable the cache?" In my case I need the ability to retrieve an exchange rate for a previous day. I therefore collect all the possible combinations for 18 exchange rates on a daily basis and store them as a serialized array in the database. The default caching only creates additional overhead.

As a result I created a simple patch, which adds the ability to set the cache interval to 'none'. This might not be much use to anyone else, but here it is nonetheless.

CommentFileSizeAuthor
#2 cache_period.patch958 bytesjohnhanley
cache_period.patch835 bytesjohnhanley

Comments

kbahey’s picture

Status: Active » Needs work
$ patch -p0 -R < cache_period.patch
missing header for unified diff at line 1 of patch
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?

Please make it a properly formatted patch.

johnhanley’s picture

StatusFileSize
new958 bytes

Take 2.

kbahey’s picture

Status: Needs work » Fixed

Committed to 5.x-1.x-dev.

Please wait for 12 hours then download and test that tarball to see if all is well.

Once confirmed by a couple of people, I will create a stable release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.