Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-289

CacheModel always Flush caches when i do set seconds=0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • DataMapper 1.6.2
    • None
    • DataMapper
    • None
    • .net 2.0/vs2005

    Description

      lock(this)
      {
      if (_lastFlush != NO_FLUSH_INTERVAL
      && (DateTime.Now.Ticks - _lastFlush > _flushInterval.Interval))

      { Flush(); }
      }
      //should be changed to::::
      lock(this)
      {
      if (_flushInterval.Interval != NO_FLUSH_INTERVAL
      && (DateTime.Now.Ticks - _lastFlush > _flushInterval.Interval))
      { Flush(); }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            tom_lt tom liu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: