fixed the timeouts by changing a couple of constant declarations
-
After a few others and I got into these horrendous API blocks for too many API calls, I did a little digging.
My wp_options table was filling up with thousands and thousands of API batch call records. To the point where I had more than half a GB in that one table alone.
Initially I just started deleting thousands of records, then I dug a little deeper.
In the source to this plugin is a source file called: ./constants/cron_constants.php
Inside that file I found a mixture of constants referring to various time periods expressed as both numeric values in seconds, and as “15 minutes”.
Changing two of the constants which were ‘value’ to their equivalent in seconds.
These are the two I changed:
/**
* GHL – 25 minutes in seconds = 1500 – use seconds, not english representation
*/
// const CACHE_REFRESH_AGE = ’25 MINUTE’;
const CACHE_REFRESH_AGE = ‘1500’;/**
* GHL – 24 hours in seconds = 86400 – use seconds, not english representation
*/
// const CACHE_EVICT_AGE = ’24 HOUR’;
const CACHE_EVICT_AGE = ‘86400’;Voila – plugin is back to behaving and the wp_options table is no longer a mess full of extra cache batch rows.
- The topic ‘fixed the timeouts by changing a couple of constant declarations’ is closed to new replies.