fixing smarty cache key generation