My requirement is to update some params in the script for a some specific nodes. If a set of nodes is attached to an X content type, it should take some params in a script. For this purpose I am running a cron job every 10 min as new contents can be attached to that X content type. In this cron job, I am fetching all nodes belonging to X content type and also from these nodes, I am getting set of nodes attached to each X node. I am storing the corresponding param value for a node in the cache using the function cache_set().
cache_set(node id, X node id, MY_CACHE_NAME, CACHE_PERMANENT)
But the problem is that some nodes are not taking the param sometimes. I think that it is setting the cache, but in the cache table something wrong is happening. But when I run 3 or 4 times the nodes which were not taking param started taking. I am not getting what is happening that cache table.
I am not getting where it is writing to the database. How can we test the problems related to these caching?
I am clearing the corresponding MYCACHE before every cron runs.
hook_cron {
cache_clear_all('*', MY_CACHE, TRUE);
take_params();
}
What am I doing wrong?