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.

AttachmentSize
cache_period.patch835 bytes

#1

kbahey - October 30, 2008 - 02:11
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

Bacteria Man - October 30, 2008 - 04:09

Take 2.

AttachmentSize
cache_period.patch 958 bytes

#3

kbahey - October 30, 2008 - 16:46
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

Anonymous (not verified) - November 13, 2008 - 16:54
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.