If you use CACHE_PERMANENT tables get cleaned-up just sometimes(new module installed etc.)
The caching system supports the time, so why not use it in the time-based plugin.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | views-timebased-non-permanent.patch | 1.95 KB | dawehner |
| #3 | views-timebased-non-permanent-v2.patch | 1.43 KB | gerhard killesreiter |
| #2 | views-timebased-non-permanent.patch | 1.24 KB | gerhard killesreiter |
| #1 | views-timebased-non-permanent-v2.patch | 1.43 KB | dawehner |
| views-timebased-non-permanent.patch | 1.24 KB | dawehner |
Comments
Comment #1
dawehnerSo here is the 2.x version.
Comment #2
gerhard killesreiter commentedElementary maths improvement.
Comment #3
gerhard killesreiter commentedand for v2. I actually tested this patch.
Comment #4
gerhard killesreiter commentedThis patch should go into the next views release. g.d.o had a 40G table due to this bug.
Comment #5
merlinofchaos commentedRather than having views_plugin_cache_time() have its own cache_set() function, I propose we add a new method: cache_expire()
The default would be:
Then views_plugin_cache_time() can override this with this logic:
Comment #6
dawehnerHere is patch with the suggested changes.
Comment #7
merlinofchaos commentedCommitted to all branches.