I should've done this in the first place, but I honestly just got impatient and excused myself for "security". However, it really doesn't make sense to invalidate request tokens simply to clear the Asana data cache. This makes the new Asana Data Cache "Clear Cache" button incompatible with frontend page caching solutions like WP Rocket. It's really an unnecessary and overkill incompatibility.
Remember that the cache should just be reset so that it gets fetched fresh on the next load. This may require resetting the cached_at datetime column value as well. The last_accessed_at datetime should not be updated since that relates to deleting stale tokens for security.
I should've done this in the first place, but I honestly just got impatient and excused myself for "security". However, it really doesn't make sense to invalidate request tokens simply to clear the Asana data cache. This makes the new Asana Data Cache "Clear Cache" button incompatible with frontend page caching solutions like WP Rocket. It's really an unnecessary and overkill incompatibility.
Remember that the cache should just be reset so that it gets fetched fresh on the next load. This may require resetting the
cached_at
datetime column value as well. Thelast_accessed_at
datetime should not be updated since that relates to deleting stale tokens for security.