Project:Currency Exchange
Version:5.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
cache_period.patch835 bytes

Comments

#1

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.

#2

Take 2.

AttachmentSize
cache_period.patch 958 bytes

#3

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.

#4

Status:fixed» closed (fixed)

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