PurpleTurtleCreative / completionist

Asana integration plugin for WordPress.
https://purpleturtlecreative.com/completionist/
GNU General Public License v3.0
1 stars 0 forks source link

Only clear the Request Token cache records instead of complete deletion #170

Closed MichelleBlanchette closed 11 months ago

MichelleBlanchette commented 1 year ago

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.