Changes between Initial Version and Version 1 of Ticket #37439


Ignore:
Timestamp:
Oct 20, 2026, 1:23:01 AM (3 hours ago)
Author:
Patel Namraa
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37439 – Description

    initial v1  
    1 
    21`DatabaseCache.touch()` can successfully extend the expiry of a cache entry that has already expired, as long as its database row has not yet been culled.
    32
    … …  
    8988The behavior was reproduced using SQLite.
    9089
    91 The full cache test suite has not yet been run. Before submitting a patch, the following should be run:
     90The existing cache test suite passes successfully on the current codebase.
    9291
    9392{{{
    94 ./runtests.py cache
     93python tests/runtests.py cache
    9594}}}
    9695
    97 The database backend has currently only been tested with SQLite; PostgreSQL, MySQL, and Oracle have not been tested yet.
     96Result:
    9897
    99 A patch containing the fix and regression test is attached to this ticket.
     98* 696 tests passed.
     99* 211 tests were skipped, primarily due to unavailable optional dependencies.
     100* No tests failed.
     101
     102This confirms that the existing cache test suite is passing before applying the fix.
     103
     104The existing `BaseCacheTests.test_touch` does not currently cover touching an already-expired key, so this behavior is not detected by the existing test suite.
Back to Top