Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3171] Android: Response cache max size should be adjustable

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-26T13:18:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-12
ComponentsAndroid
Labelsandroid, cache, feature, release-1.7.0, reported-1.6.0, responsecache
ReporterBill Dawson
AssigneeOpie Cyrus
Created2011-04-15T03:38:44.000+0000
Updated2011-04-26T13:18:55.000+0000

Description

The code defines private static final String CACHE_SIZE_KEY = "ti.android.cache.size.max"; but never once makes use of it.

Attachments

FileDateSize
tiapp.xml2011-04-15T03:38:44.000+00001392

Comments

  1. Opie Cyrus 2011-04-15

    (from [4611635381c25bc933fb18ecac3027b670814725]) [#3171 state:fixed-in-qa] utilize ti.android.cache.size.max value for setting response cache size

    respect ti.android.cache.size.max value when setting response cache. also moved setting the TiConfig.LOGD value to the postOnCreate method inside TiApplication in order to support debug logging during the intialization of the response cache.
    https://github.com/appcelerator/titanium_mobile/commit/4611635381c25bc933fb18ecac3027b670814725"> https://github.com/appcelerator/titanium_mobile/commit/4611635381c2...

  2. Opie Cyrus 2011-04-15

    Please verify the fix by running the default titanium test app with debug output enabled (see attached tiapp.xml). You should see a debug message "[TRACE] D/TiResponseCache( 318): (main) [254,980] max cache size is:204800" if the value in tiapp.xml is being respected.

    The value in "200" within tiapp.xml is what drives the debug value printed. The value in tiapp.xml represents the max cache size in kilo bytes but the debug output value is bytes.

JSON Source