I'm using drupal 6 and I've build table that is similar to cache (hook_schema) for using it with function cache_get/cache_set. I just want to be sure how things should work in drupal.
- To clean the table I'll need to use hook hook_flush_caches() where I'll decide if i want to clear expire data or whole cache? hook_flush_caches is called on cron?
- In case I'll need to check data expiration by second, I'll need to do manually after cache_get function ?
This is kinda confusing...