Currency rate update in currency_api_load()
odi - November 8, 2008 - 19:16
| Project: | Currency Exchange |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I think in currency_api.module
@619
$result = db_fetch_object(db_query("SELECT * FROM {currencyapi} WHERE currency_from = '%s' AND currency_to = '%s' AND timestamp > UNIX_TIMESTAMP( ) - %d", $currency_from, $currency_to, variable_get('currency_api_fetch', UPDATE_FREQUENCY)));
shuold be "timestamp < UNIX_TIMESTAMP( ) - %d" - less than instead of greater than.
If there is "timestamp > UNIX_TIMESTAMP( ) - %d", on every fnc. call will be true, and currency rate will be refreshed - not mind the config setup.

#1
#2
Are you sure this is the case? Do you see a watchdog message on every cron run?
#3
Sorry, it was my mistake.
#4