Modified init script to handle other cache methods