disable cache option
Bacteria Man - October 30, 2008 - 01:05
| Project: | Currency Exchange |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
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.
| Attachment | Size |
|---|---|
| cache_period.patch | 835 bytes |

#1
$ patch -p0 -R < cache_period.patchmissing 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.
#3
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
Automatically closed -- issue fixed for two weeks with no activity.